mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 05:01:08 +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() {
|
async handleAvoidDeath() {
|
||||||
console.log("Avoid Death!");
|
|
||||||
const target = this.actor.uuid;
|
const target = this.actor.uuid;
|
||||||
const config = await enrichedFateRoll({
|
const config = await enrichedFateRoll({
|
||||||
target,
|
target,
|
||||||
|
|
@ -51,12 +50,8 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV
|
||||||
label: 'test',
|
label: 'test',
|
||||||
fateType: "Hope"
|
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) {
|
if (config.roll.fate.value <= this.actor.system.levelData.level.current) {
|
||||||
// apply scarring - for now directly apply - later add a button.
|
// 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;
|
const newScarAmount = this.actor.system.scars + 1;
|
||||||
|
|
||||||
await this.actor.update(
|
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() {
|
async handleRiskItAll() {
|
||||||
console.log("Risk It All!");
|
|
||||||
|
|
||||||
const config = await enrichedDualityRoll({
|
const config = await enrichedDualityRoll({
|
||||||
reaction: true,
|
reaction: true,
|
||||||
traitValue: null,
|
traitValue: null,
|
||||||
|
|
@ -85,8 +76,6 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV
|
||||||
advantage: null
|
advantage: null
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("config", config);
|
|
||||||
|
|
||||||
if (config.roll.isCritical) {
|
if (config.roll.isCritical) {
|
||||||
console.log("Clear all stress and HP");
|
console.log("Clear all stress and HP");
|
||||||
return;
|
return;
|
||||||
|
|
@ -107,6 +96,10 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async handleBlazeOfGlory() {
|
||||||
|
console.log("TODO: Blaze Of Glory");
|
||||||
|
}
|
||||||
|
|
||||||
static selectMove(_, button) {
|
static selectMove(_, button) {
|
||||||
const move = button.dataset.move;
|
const move = button.dataset.move;
|
||||||
this.selectedMove = CONFIG.DH.GENERAL.deathMoves[move];
|
this.selectedMove = CONFIG.DH.GENERAL.deathMoves[move];
|
||||||
|
|
@ -154,5 +147,10 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CONFIG.DH.GENERAL.deathMoves.blazeOfGlory === this.selectedMove) {
|
||||||
|
this.handleBlazeOfGlory();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue