mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
Fix updating hope/fear on companion rolls (#2003)
This commit is contained in:
parent
2c09310694
commit
500dcb2214
2 changed files with 2 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
import { abilities } from '../../config/actorConfig.mjs';
|
import { abilities } from '../../config/actorConfig.mjs';
|
||||||
import { burden } from '../../config/generalConfig.mjs';
|
import { burden } from '../../config/generalConfig.mjs';
|
||||||
import { createEmbeddedItemsWithEffects, createEmbeddedItemWithEffects } from '../../helpers/utils.mjs';
|
|
||||||
|
|
||||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,9 +62,7 @@ export default class DhCompanionSheet extends DHBaseActorSheet {
|
||||||
await this.document.update({ 'system.resources.stress.value': newValue });
|
await this.document.update({ 'system.resources.stress.value': newValue });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** @this {DhCompanionSheet} **/
|
||||||
*
|
|
||||||
*/
|
|
||||||
static async #actionRoll(event) {
|
static async #actionRoll(event) {
|
||||||
const partner = this.actor.system.partner;
|
const partner = this.actor.system.partner;
|
||||||
const config = {
|
const config = {
|
||||||
|
|
@ -80,6 +78,7 @@ export default class DhCompanionSheet extends DHBaseActorSheet {
|
||||||
|
|
||||||
const result = await partner.diceRoll(config);
|
const result = await partner.diceRoll(config);
|
||||||
this.consumeResource(result?.costs);
|
this.consumeResource(result?.costs);
|
||||||
|
result?.resourceUpdates.updateResources();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove when Action Refactor part #2 done
|
// Remove when Action Refactor part #2 done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue