Merged with feature/custom-resources

This commit is contained in:
WBHarry 2026-03-10 18:46:07 +01:00
commit 5e6b0f9a75
10 changed files with 28 additions and 31 deletions

View file

@ -1003,10 +1003,10 @@ export default class CharacterSheet extends DHBaseActorSheet {
});
for (const element of html.querySelectorAll('.resource-value'))
element.addEventListener('click', this.updateResource.bind(this));
element.addEventListener('click', this.onUpdateResource.bind(this));
}
async updateResource(event) {
async onUpdateResource(event) {
const target = event.target.closest('.resource-value');
const { resource, value: textValue } = target.dataset;