mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Added update of resource when a 1 is rolled
This commit is contained in:
parent
85e6e8580f
commit
f004227232
5 changed files with 33 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue