mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Stuff
This commit is contained in:
parent
1fea8438ba
commit
7af3f07a26
14 changed files with 260 additions and 16 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue