-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve obtain_cost algorithm for pockets #40164
Comments
My opinion is that this is a very low priority issue. I don't think it affects game-play that much. Sure, it might reflect reality a little more. Large items such as tennis rackets are easier to find in a bag than tiny items like coins. But is the added complexity worth the trouble? |
it might not be high priority, but i wanted it listed because i wasn't planning on being the one to implement it, as i have other things to do. any complexity added by this will likely be relegated to a single function that calculates moves, rather than just being a flat number that's always the same. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
OK so this is directly related to another issue I'd like to write, about furniture and vehicle container access time (rummaging), so I have been thinking about this a bit. Initial thoughts:
|
OK so let's create a few variables:
First, go through a set of
If all those are false, ie. this is not the largest item in the container, doesn't occupy half the container, and is not the most numerous item in the container, and there are more than a tiny number of things in the container, then we should calculate a cost to remove the item.
The max obtain cost should cap at the time it would take to just dump out and repack the container. The second max would allow for the possibility that if you're trying to find a USB key in a 60L drum filled with crafting scraps, you might just dump the drum out, find the key, and repack it, because the multiplier for rummaging around for it is going to be impossibly high. However we could leave that out if it's going to be proc expensive, and just let players decide for themselves. We may want dexterity and perception to play a role in the final speed, if they don't already. We may want a set of proficiencies like |
Note the difference between finding something in places that you tried to organize, vs places you dumped stuff for later sorting (e.g., that 60L drum...). Admittedly, for someone with the Disorganized trait, it may not be very different... although I manage to be both good at packing things into limited spaces and disorganized in where I put things. |
Is your feature request related to a problem? Please describe.
Right now the obtain cost is very simple: you add up all the base moves of the pockets and add the inventory handling multiplier on top.
Describe the solution you'd like
I would like to see the cost of grabbing an item from a pocket be based on the other items that are in that pocket, simulating rummaging through the pocket to find said item. The infrastructure is nominally in place in item_pocket::obtain_cost(), so that's where the algorithm would be for such a thing.
Describe alternatives you've considered
leave it as it is?
Additional context
my math skills are not strong enough to do something like this, and i could only do a "good enough for now" solution. As such, i thought i'd open up a feature request to hopefully let people know it's something that's desired, and for it not to get lost in my mind.
The text was updated successfully, but these errors were encountered: