mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-16 13:41:07 +01:00
debug stuff
This commit is contained in:
parent
e166a408f1
commit
3f4c36f862
2 changed files with 11 additions and 2 deletions
|
|
@ -44,13 +44,21 @@ export default class DhDeathMove extends HandlebarsApplicationMixin(ApplicationV
|
||||||
async handleAvoidDeath() {
|
async handleAvoidDeath() {
|
||||||
console.log("Avoid Death!");
|
console.log("Avoid Death!");
|
||||||
const target = this.actor.uuid;
|
const target = this.actor.uuid;
|
||||||
await enrichedFateRoll({
|
const config = await enrichedFateRoll({
|
||||||
target,
|
target,
|
||||||
title: "Avoid Death Hope Fate Roll",
|
title: "Avoid Death Hope Fate Roll",
|
||||||
label: 'test',
|
label: 'test',
|
||||||
fateType: "Hope"
|
fateType: "Hope"
|
||||||
});
|
});
|
||||||
console.log("enrichedFateRoll done...");
|
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);
|
||||||
|
this.actor.system.scars.push({id:"1", name: "scar1", description: "description1"});
|
||||||
|
console.log("Adding a scar result", this.actor.system.scars);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleRiskItAll() {
|
handleRiskItAll() {
|
||||||
|
|
|
||||||
|
|
@ -93,4 +93,5 @@ export const enrichedFateRoll = async (
|
||||||
config.data = { experiences: {}, traits: {}, fateType: fateType };
|
config.data = { experiences: {}, traits: {}, fateType: fateType };
|
||||||
config.source = { actor: target?.uuid };
|
config.source = { actor: target?.uuid };
|
||||||
await CONFIG.Dice.daggerheart.FateRoll.build(config);
|
await CONFIG.Dice.daggerheart.FateRoll.build(config);
|
||||||
|
return config;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue