CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
9.73k stars 4.05k forks source link

Update Ankle Wallet Pouch to Accommodate Larger Wallets #73486

Closed TheMurderUnicorn closed 1 week ago

TheMurderUnicorn commented 2 weeks ago

Summary

Bugfixes "Allow Ankle Wallet Pouch to Accommodate Larger Wallets"

Purpose of change

ankle_wallet_pouch was designed specifically to hold wallets, but could not hold ANY wallet that contained a standard 3 inch card (which is almost all cards), as the 3 inch card made the wallet too long for the pouch.

Describe the solution

Although I initially planned to change just the max_length, it became apparent that weight, length, and volume restrictions on the pocket needed to be increased. Here are the reasonings I wrote to myself while working on this:

This should resolve the issue posted. This will still not accommodate the largest wallet that’s been filled literally to the brim, but I don’t think it needs to, I shouldn’t build it for the maximum most overloaded wallet possible, I should build it (as I have) to accommodate the majority of circumstances and still have limitations when you ‘ask too much’ of this little pocket. If this is wrong, please correct me and I will think about and amend the PR.

Hugely loaded wallet now fits, here is the final pocket data with my testing, this is more than enough to accommodate the average player situation, especially since most of us don’t collect coins, bills, or really anything beyond some cash cards and whatever ID cards we find. image

Describe alternatives you've considered

None, really, once I sort of thought it through, this seems like the way to handle it. I laid out my reasonings above, and while I wasn't certain on the numbers themselves being perfect, it seems the pouch really did need at least some increase to all those values.

Testing

Pretty much just tested volume/weight/length of various wallet items to see how they inflated wallet size, tested them with the pouch, verified what was being limited/why, etc. Basic testing stuff.

Additional context

Closes #73477

Termineitor244 commented 2 weeks ago

Thanks for this! It was an oversight from my part that this pouch was so small, thanks!