diff --git a/module/applications/dialogs/deathMove.mjs b/module/applications/dialogs/deathMove.mjs index 2d9b18b7..a0b2ec2b 100644 --- a/module/applications/dialogs/deathMove.mjs +++ b/module/applications/dialogs/deathMove.mjs @@ -43,7 +43,6 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV } async handleAvoidDeath() { - console.log("Avoid Death!"); const target = this.actor.uuid; const config = await enrichedFateRoll({ target, @@ -51,12 +50,8 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV label: 'test', fateType: "Hope" }); - console.log("enrichedFateRoll done...", config); - console.log("config.roll.fate.value", config.roll.fate.value); - console.log("actor", this.actor); if (config.roll.fate.value <= this.actor.system.levelData.level.current) { // apply scarring - for now directly apply - later add a button. - console.log("Adding a scar...", this.actor.system.scars); const newScarAmount = this.actor.system.scars + 1; await this.actor.update( @@ -66,14 +61,10 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV } } ); - - console.log("Adding a scar result", this.actor.system.scars); } } async handleRiskItAll() { - console.log("Risk It All!"); - const config = await enrichedDualityRoll({ reaction: true, traitValue: null, @@ -85,8 +76,6 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV advantage: null }); - console.log("config", config); - if (config.roll.isCritical) { console.log("Clear all stress and HP"); return; @@ -107,6 +96,10 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV } + async handleBlazeOfGlory() { + console.log("TODO: Blaze Of Glory"); + } + static selectMove(_, button) { const move = button.dataset.move; this.selectedMove = CONFIG.DH.GENERAL.deathMoves[move]; @@ -154,5 +147,10 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV return; } + if (CONFIG.DH.GENERAL.deathMoves.blazeOfGlory === this.selectedMove) { + this.handleBlazeOfGlory(); + return; + } + } }