daggerheart/module/data/settings/Homebrew.mjs
WBHarry 7802d18a4d
144 - Update System Settings (#145)
* Updated SystemSettings to V2 and organized some

* Corrected distance measuring labels

* Raised system.json foundry version
2025-06-15 17:01:59 +02:00

19 lines
707 B
JavaScript

export default class DhHomebrew extends foundry.abstract.DataModel {
static LOCALIZATION_PREFIXES = ['DAGGERHEART.Settings.Homebrew']; // Doesn't work for some reason
static defineSchema() {
const fields = foundry.data.fields;
return {
maxFear: new fields.NumberField({
required: true,
integer: true,
min: 0,
initial: 12,
label: 'DAGGERHEART.Settings.Homebrew.FIELDS.maxFear.label'
}),
traitArray: new fields.ArrayField(new fields.NumberField({ required: true, integer: true }), {
initial: () => [2, 1, 1, 0, 0, -1]
})
};
}
}