mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
38 lines
No EOL
1.2 KiB
JavaScript
38 lines
No EOL
1.2 KiB
JavaScript
const fields = foundry.data.fields;
|
|
|
|
export default class DHSummonField extends fields.ArrayField {
|
|
/**
|
|
* Action Workflow order
|
|
*/
|
|
static order = 120;
|
|
|
|
constructor(options = {}, context = {}) {
|
|
const summonFields = new fields.SchemaField({
|
|
actorUUID: new fields.DocumentUUIDField({
|
|
type: 'Actor',
|
|
required: true
|
|
}),
|
|
count: new fields.NumberField({
|
|
required: true,
|
|
default: 1,
|
|
min: 1,
|
|
integer: true
|
|
})
|
|
})
|
|
super(summonFields, options, context);
|
|
|
|
// summon: new fields.ArrayField(new fields.SchemaField({
|
|
// actorUUID: new fields.DocumentUUIDField({
|
|
// type: 'Actor',
|
|
// required: true }),
|
|
// count: new fields.NumberField({
|
|
// required: true,
|
|
// default: 1,
|
|
// min: 1,
|
|
// integer: true })
|
|
// }), { required: false, initial: [] })
|
|
// };
|
|
// super(summonFields, options, context);
|
|
}
|
|
|
|
} |