foundryvtt / dnd5e

An implementation of the 5th Edition game system for Foundry Virtual Tabletop (http://foundryvtt.com).
MIT License
276 stars 177 forks source link

[#3541] Add Consume Usage and Consume Resource buttons to chat #3542

Closed arbron closed 3 weeks ago

arbron commented 3 weeks ago

Whenever an item has usage or resources to consume but those are not consumed during normal activation, this adds a pair of new chat buttons to "Consume Usage" or "Consume Resource" which performs the normal consumption when clicked. These buttons are removed from the chat card once they have been used to indicate that consumption has already occured.

To track whether these consumptions have happened, new flags have been added to messages in dnd5e.use: consumedUsage, consumedResource, and consumedSpellSlot (though no matching button was added for spell slots at this time).