This commit is contained in:
WBHarry 2026-04-19 20:58:34 +02:00
parent 1fea8438ba
commit 7af3f07a26
14 changed files with 260 additions and 16 deletions

View file

@ -303,7 +303,13 @@ export default class DhCharacter extends DhCreature {
initial: null,
label: 'DAGGERHEART.ACTORS.Character.defaultDisadvantageDice'
}),
})
}),
comboDieIndex: new fields.NumberField({
integer: true,
min: 0,
max: 5,
initial: 0,
})
})
};
}
@ -447,6 +453,19 @@ export default class DhCharacter extends DhCreature {
return attack;
}
get levelupTiers() {
const tierData = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.LevelTiers);
for (const tierKey of Object.keys(this.class?.value?.system.levelupOptionTiers ?? {})) {
const tier = this.class.value.system.levelupOptionTiers[tierKey];
for (const optionKey of Object.keys(tier)) {
const option = tier[optionKey];
tierData.tiers[tierKey].options[optionKey] = option;
}
}
return tierData;
}
/* All items are valid on characters */
isItemValid() {
return true;
@ -745,6 +764,9 @@ export default class DhCharacter extends DhCreature {
}
});
break;
case 'comboStrikes':
this.rules.comboDieIndex += 1;
break;
}
}
}