mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Finished token implementation
This commit is contained in:
parent
3b237a223f
commit
809255ba79
7 changed files with 466 additions and 34 deletions
|
|
@ -80,9 +80,9 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
|||
if (this.metadata.usesSize)
|
||||
schema.size = new fields.StringField({
|
||||
required: true,
|
||||
nullable: false,
|
||||
nullable: true,
|
||||
choices: CONFIG.DH.ACTOR.tokenSize,
|
||||
initial: CONFIG.DH.ACTOR.tokenSize.medium.id
|
||||
initial: null
|
||||
});
|
||||
return schema;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,12 +43,12 @@ export default class DhHomebrew extends foundry.abstract.DataModel {
|
|||
tokenSizes: new fields.SchemaField({
|
||||
tiny: new fields.NumberField({
|
||||
integer: false,
|
||||
initial: 0.4,
|
||||
initial: 0.5,
|
||||
label: 'DAGGERHEART.CONFIG.TokenSize.tiny'
|
||||
}),
|
||||
small: new fields.NumberField({
|
||||
integer: false,
|
||||
initial: 0.6,
|
||||
initial: 0.8,
|
||||
label: 'DAGGERHEART.CONFIG.TokenSize.small'
|
||||
}),
|
||||
medium: new fields.NumberField({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue