mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
19 lines
707 B
JavaScript
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]
|
|
})
|
|
};
|
|
}
|
|
}
|