Added update of resource when a 1 is rolled

This commit is contained in:
WBHarry 2026-07-03 16:58:13 +02:00
parent 85e6e8580f
commit f004227232
5 changed files with 33 additions and 9 deletions

View file

@ -70,12 +70,12 @@ export default class DHAttackAction extends DHDamageAction {
game.dice3d.showForRoll(roll, game.user, true);
}
const needsToReload = roll.total === 1;
const needsToReload = true;
// const needsToReload = roll.total === 1;
if (needsToReload) {
// TODO: Update item resource value when the functionality has been added to the system
// this.item.update({ 'system.resource.value': 0 });
this.item.update({ 'system.resource.value': 0 });
}
return true;
return needsToReload;
}