fjallnari / morii-vtt

Web-based half-vtt for playing TTRPGs. Currently supports 5E, Cairn and Shadowdark.
https://moriivtt.com/
MIT License
12 stars 1 forks source link

Add Cairn armor in-sheet value editing #97

Closed fjallnari closed 1 year ago

fjallnari commented 1 year ago

Similarly to how weapons have specific input field inItemDetailCairn.svelte, I would add an equivalent input for an armor-type item armor field.

Then we could create a function, something like recalculateArmor, which updates the global armor value on submitting the input field. I would create this function in the CharacterSheetCoreCairn file and pass it down to ItemDetailCairn similar to how the function deleteItem works now. $modifyCharacter() should be called at the end to trigger DB update.