mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
15 lines
516 B
JavaScript
15 lines
516 B
JavaScript
export default class TriggerField extends foundry.data.fields.SchemaField {
|
|
constructor(context) {
|
|
super(
|
|
{
|
|
trigger: new foundry.data.fields.StringField({
|
|
nullable: false,
|
|
initial: CONFIG.DH.TRIGGER.triggers.dualityRoll.id,
|
|
choices: CONFIG.DH.TRIGGER.triggers
|
|
}),
|
|
command: new foundry.data.fields.JavaScriptField({ async: true })
|
|
},
|
|
context
|
|
);
|
|
}
|
|
}
|