mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
[PR][Feature] Actor Sizes (#1433)
* Added support for adversary actor sizes * . * . * Finished token implementation * Fixed token-config * Updated SRD adversaries * . * Added size to Beastform tokenData * Fixed sizing for evolved beastforms * Beastform compendium update * .
This commit is contained in:
parent
7926c614e3
commit
8178fa5738
176 changed files with 1198 additions and 203 deletions
|
|
@ -42,7 +42,8 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
|||
settingSheet: null,
|
||||
hasResistances: true,
|
||||
hasAttribution: false,
|
||||
hasLimitedView: true
|
||||
hasLimitedView: true,
|
||||
usesSize: false
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -77,6 +78,13 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
|||
'DAGGERHEART.GENERAL.DamageResistance.magicalReduction'
|
||||
)
|
||||
});
|
||||
if (this.metadata.usesSize)
|
||||
schema.size = new fields.StringField({
|
||||
required: true,
|
||||
nullable: false,
|
||||
choices: CONFIG.DH.ACTOR.tokenSize,
|
||||
initial: CONFIG.DH.ACTOR.tokenSize.custom.id
|
||||
});
|
||||
return schema;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue