mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 14:36:13 +01:00
Changed to just adding 'isStandardAttack' in adversary data prep
This commit is contained in:
parent
32b6e732fe
commit
73941f1088
2 changed files with 4 additions and 11 deletions
|
|
@ -191,6 +191,10 @@ export default class DhpAdversary extends DhCreature {
|
|||
}
|
||||
}
|
||||
|
||||
prepareDerivedData() {
|
||||
this.attack.roll.isStandardAttack = true;
|
||||
}
|
||||
|
||||
_getTags() {
|
||||
const tags = [
|
||||
game.i18n.localize(`DAGGERHEART.GENERAL.Tiers.${this.tier}`),
|
||||
|
|
@ -406,10 +410,4 @@ export default class DhpAdversary extends DhCreature {
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
static migrateData(source) {
|
||||
if (!source.attack.roll.isStandardAttack) source.attack.roll.isStandardAttack = true;
|
||||
|
||||
return super.migrateData(source);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,11 +11,6 @@ export class DHActionRollData extends foundry.abstract.DataModel {
|
|||
choices: CONFIG.DH.ACTOR.abilities,
|
||||
label: 'DAGGERHEART.GENERAL.Trait.single'
|
||||
}),
|
||||
isStandardAttack: new fields.BooleanField({
|
||||
required: true,
|
||||
nullable: false,
|
||||
initial: false
|
||||
}),
|
||||
difficulty: new fields.NumberField({ nullable: true, initial: null, integer: true, min: 0 }),
|
||||
bonus: new fields.NumberField({ nullable: true, initial: null, integer: true }),
|
||||
advState: new fields.StringField({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue