BeastformAction now respects and handles costs

This commit is contained in:
WBHarry 2025-07-30 18:36:11 +02:00
parent 7bbbdce739
commit edbca4c022
3 changed files with 14 additions and 3 deletions

View file

@ -224,7 +224,7 @@ export default class DHBaseAction extends ActionMixin(foundry.abstract.DataModel
keyIsID: resource.keyIsID
};
});
console.log(resources);
await this.actor.modifyResource(resources);
if (config.uses?.enabled) this.update({ 'uses.value': this.uses.value + 1 });
}