roth-michael / FoundryVTT-RestRecovery

This repository adds support for D&D 5E's Arcane/Natural Recovery within the short rest dialog, and additional short rest mechanics
Other
20 stars 17 forks source link

[Request] Party Sharing Food and Water #247

Open marceloabner opened 3 months ago

marceloabner commented 3 months ago

Is your feature request related to a problem? Please describe. In games that use foraging rules, one or two players usually find food and water and then distribute it to the other players. Some modules already automate this part of getting items, such as TheRipper's Gatherer, but it's still tedious to keep exchanging items between characters before taking a long rest when you're playing days in sequence.

Describe the solution you'd like On the long rest screen, have the option to use the food and water of another player. It is necessary to have some option or flag on the character sheet or actor to enable other players to spend resources from it.

Describe alternatives you've considered

  1. Integration with item piles, to donate an item more easily. This function could be a button with a dropdown list, where the player would choose other players to transfer a certain amount of food and water. In this case, the player with the items would need to rest first.
  2. A second version of this method would be that instead of transferring the items, the module would only identify whether the character with the items donated the minimum required, and the module would only activate a flag to not require food or water on the next rest for the players who would receive the items. This version probably seems simpler.
  3. Mark in the chat that a character consumed more food and water than necessary so that it would be easy for the GM to identify and remove the exhaustion of a player who did not consume anything (this solution serves as a non-automated method)
roth-michael commented 3 months ago

I'll consider the original solution you've mentioned. I'm not sure how within-scope it is, though. My suggestion would be to create an Item Pile on the map prior to a rest, have the gatherers pool their food/water there, and then split it using the Item Piles "split among players" functionality. Or even just have the gatherers drop their surplus on the ground as an Item Pile and have other players grab it first come, first serve.

Beyond the issue of scope, my main technical concern is that all of these rests are happening at the same time (and I definitely won't be changing that), which leads to the question of what happens if two players try to consume a third player's food at the same moment.

Belodri commented 3 months ago

I would love to see this implemented as well!

Beyond the issue of scope, my main technical concern is that all of these rests are happening at the same time (and I definitely won't be changing that), which leads to the question of what happens if two players try to consume a third player's food at the same moment.

When a rest is prompted, you could sum up how much food is available for sharing (all actors with sharing enabled, minus the amount those character require themselves). If the remaining total is less than what all non-sharing characters combined require, you could disable the button/checkbox for all of them and display a tooltip saying something along the lines of "Sharing is disabled because not enough food is available to sate everyone."

That would ensure that two players can only ever consume a third player's food if what's available is enough for both of them.