fantasycalendar / FoundryVTT-ItemPiles

Other
33 stars 52 forks source link

[REQUEST] - [D&D5e] - Consider currency that is in a carried Container as part of the Actor's available currency in Merchant shops #552

Open TremendoDude opened 3 months ago

TremendoDude commented 3 months ago

Is your feature request related to a problem? Please describe. The weight of the currency is paltry, but adds up when players are carrying vast amount of currency. To mitigate this when encumbrance becomes an issue, a player may opt to store their money in a weightless bag (such as a Bag of Holding) or in a bag they can drop when they enter combat. However, currency that is stored within bags (Containers) is not currently detected as being owned by the actor by the Item Piles module, which prevents it from being used to buy from shops unless first transferred to the actor's main inventory.

Describe the solution you'd like I would like it if currency stored in a container in the actor's inventory was considered as part of the actor's total currency when buying items from stores. For example, if a player has 1000gp in a Bag of Holding and 25gp in their inventory, the store would show them as having 1025gp total. When purchasing, it would deplete currency first from the main inventory, and then from containers.

Describe alternatives you've considered Currently, players can use the Manage Currency button to transfer currency from their bag to their own pockets before purchasing from shops. This works fine, but feels unintuitive.

Haxxer commented 2 weeks ago

@TremendoDude Which currencies would be prioritized first? Character currencies, or bag currencies?

TremendoDude commented 2 weeks ago

Character currency I imagine as comparable to the money you carry with you in your pockets, as opposed to the money you carry with you in your traveling packs. As it's more intuitive for money in your pocket to be the first you pull from, I believe character currencies should be prioritized first. Not to mention that character currency more consistently contributes to character storage weight.

If it's possible to further subdivide the order, after character currency, it'd likely be most intuitive to then draw from currency stored in regular bags, and then finally currency stored in weightless bags.