mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
Remove some debug code; add Blaze Of Glory shell
This commit is contained in:
parent
d2caa5f6d9
commit
53c18d2313
1 changed files with 9 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue