mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 07:59:03 +01:00
16 lines
No EOL
578 B
JavaScript
16 lines
No EOL
578 B
JavaScript
const fields = foundry.data.fields;
|
|
|
|
export default class TargetField extends fields.SchemaField {
|
|
constructor(options={}, context={}) {
|
|
const targetFields = {
|
|
type: new fields.StringField({
|
|
choices: CONFIG.DH.ACTIONS.targetTypes,
|
|
initial: CONFIG.DH.ACTIONS.targetTypes.any.id,
|
|
nullable: true,
|
|
initial: null
|
|
}),
|
|
amount: new fields.NumberField({ nullable: true, initial: null, integer: true, min: 0 })
|
|
};
|
|
super(targetFields, options, context);
|
|
}
|
|
} |