mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Some fixes
This commit is contained in:
parent
92a0883806
commit
fb9240e130
18 changed files with 94 additions and 82 deletions
|
|
@ -71,29 +71,6 @@ export class DHActionRollData extends foundry.abstract.DataModel {
|
|||
const modifiers = [];
|
||||
if (!this.parent?.actor) return modifiers;
|
||||
switch (this.parent.actor.type) {
|
||||
case 'character':
|
||||
// const spellcastingTrait =
|
||||
// this.type === 'spellcast'
|
||||
// ? (this.parent.actor?.system?.spellcastModifierTrait?.key ?? 'agility')
|
||||
// : null;
|
||||
// const trait =
|
||||
// this.useDefault || !this.trait
|
||||
// ? (spellcastingTrait ?? this.parent.item.system.attack?.roll?.trait ?? 'agility')
|
||||
// : this.trait;
|
||||
// if (
|
||||
// this.type === CONFIG.DH.GENERAL.rollTypes.attack.id ||
|
||||
// this.type === CONFIG.DH.GENERAL.rollTypes.trait.id
|
||||
// )
|
||||
// modifiers.push({
|
||||
// label: `DAGGERHEART.CONFIG.Traits.${trait}.name`,
|
||||
// value: this.parent.actor.system.traits[trait].value
|
||||
// });
|
||||
// else if (this.type === CONFIG.DH.GENERAL.rollTypes.spellcast.id)
|
||||
// modifiers.push({
|
||||
// label: `DAGGERHEART.CONFIG.RollTypes.spellcast.name`,
|
||||
// value: this.parent.actor.system.spellcastModifier
|
||||
// });
|
||||
break;
|
||||
case 'companion':
|
||||
case 'adversary':
|
||||
if (this.type === CONFIG.DH.GENERAL.rollTypes.attack.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue