foundry-vtt-tidy-5e-sheets
foundry-vtt-tidy-5e-sheets copied to clipboard
feat: Pin Item as Resource
The Resource Tracker paradigm is useful to numerous users. Sometimes it is useful to have a critical, tracked resource rise above the rest of the UI. For example, a paladin may want to have their Lay on Hands pool visible at a glance. Or a monk's ki.
Add a new Tidy flag for pinning an item as a resource. This flag should be settable from the item sheet itself or from the context menu. Things that can be pinned as a resource: TBD, but most likely any item that can represent usage value/max (e.g., features like "Ki," potions, equipment/weapons/etc. with limited uses, Lay on Hands Pool, things along those lines).
When there are no resources pinned, no resource UI is visible.
When at least 1 resource is pinned, a dedicated area for resources is visible above the favorites item list.
A player can pin as many resources as they wish, thus fulfilling the Add a Resource effect.
Resources can also be unpinned from the resources view through some UI.
Resource entries in the resource view should be rollable (and probably include the item image), and the uses/max totals should be adjustable per user permissions.
When the sheet is locked down in total lockdown mode, the max value should become readonly.
If there is a cog in edit mode, it should open the item sheet in question.
Create a per-sheet migration that can import existing resources from
- the system (first, second, third)
- 5e sheet resources plus
- Add a Resource Allow the user to choose the sources from which to migrate. The migration should appear in the Sheet Migrations dialog, which can be access from the menu option on the character sheet.