mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
* cleanup * test * Step 1 * #2 * Fix Effect Action & Add Hope tumation settings to hook * remove circular dependency * Snuck in some localization fixes I noticed * Remove success condition for duality roll gain * Changed config.roll.type logic --------- Co-authored-by: WBHarry <williambjrklund@gmail.com>
24 lines
990 B
JavaScript
24 lines
990 B
JavaScript
export default class DhAutomation extends foundry.abstract.DataModel {
|
|
static LOCALIZATION_PREFIXES = ['DAGGERHEART.SETTINGS.Automation']; // Doesn't work for some reason
|
|
|
|
static defineSchema() {
|
|
const fields = foundry.data.fields;
|
|
return {
|
|
hope: new fields.BooleanField({
|
|
required: true,
|
|
initial: false,
|
|
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.hope.label'
|
|
}), // Label need to be updated into something like "Duality Roll Auto Gain" + a hint
|
|
actionPoints: new fields.BooleanField({
|
|
required: true,
|
|
initial: false,
|
|
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.actionPoints.label'
|
|
}),
|
|
countdowns: new fields.BooleanField({
|
|
requireD: true,
|
|
initial: false,
|
|
label: 'DAGGERHEART.SETTINGS.Automation.FIELDS.countdowns.label'
|
|
})
|
|
};
|
|
}
|
|
}
|