mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
* Added the ability for effects to automatically activate/deactivate depending on range between tokens * Fixed to use Foundry's measuring instead. * .
35 lines
1.4 KiB
JavaScript
35 lines
1.4 KiB
JavaScript
export default class DhAutomation extends foundry.abstract.DataModel {
|
|
static defineSchema() {
|
|
const fields = foundry.data.fields;
|
|
return {
|
|
hopeFear: new fields.SchemaField({
|
|
gm: new fields.BooleanField({
|
|
required: true,
|
|
initial: false,
|
|
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.hopeFear.gm.label'
|
|
}),
|
|
players: new fields.BooleanField({
|
|
required: true,
|
|
initial: false,
|
|
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.hopeFear.players.label'
|
|
})
|
|
}),
|
|
actionPoints: new fields.BooleanField({
|
|
required: true,
|
|
initial: false,
|
|
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.actionPoints.label'
|
|
}),
|
|
hordeDamage: new fields.BooleanField({
|
|
required: true,
|
|
initial: true,
|
|
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.hordeDamage.label'
|
|
}),
|
|
effects: new fields.SchemaField({
|
|
rangeDependent: new fields.BooleanField({
|
|
initial: true,
|
|
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.effects.rangeDependent.label'
|
|
})
|
|
})
|
|
};
|
|
}
|
|
}
|