BeastformAction now respects and handles costs (#484)

This commit is contained in:
WBHarry 2025-07-31 03:25:09 +02:00 committed by GitHub
parent 23b8363dd2
commit bb9036ee7a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 });
}