mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
f
This commit is contained in:
parent
17dd9b1f61
commit
479e147640
25 changed files with 339 additions and 289 deletions
18
module/data/fields/action/costField.mjs
Normal file
18
module/data/fields/action/costField.mjs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
const fields = foundry.data.fields;
|
||||
|
||||
export default class CostField extends fields.ArrayField {
|
||||
constructor(options={}, context={}) {
|
||||
const element = new fields.SchemaField({
|
||||
key: new fields.StringField({
|
||||
nullable: false,
|
||||
required: true,
|
||||
initial: 'hope'
|
||||
}),
|
||||
keyIsID: new fields.BooleanField(),
|
||||
value: new fields.NumberField({ nullable: true, initial: 1 }),
|
||||
scalable: new fields.BooleanField({ initial: false }),
|
||||
step: new fields.NumberField({ nullable: true, initial: null })
|
||||
});
|
||||
super(element, options, context);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue