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.
Similarly to how weapons have specific input field in
ItemDetailCairn.svelte
, I would add an equivalent input for an armor-type itemarmor
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 theCharacterSheetCoreCairn
file and pass it down toItemDetailCairn
similar to how the functiondeleteItem
works now.$modifyCharacter()
should be called at the end to trigger DB update.