mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
* Organized language * Organized high level folders * Some deeper organization * More org. That's enough ._. * Capitalized initial system localization categories
26 lines
1,006 B
JavaScript
26 lines
1,006 B
JavaScript
export default class DhVariantRules extends foundry.abstract.DataModel {
|
|
static LOCALIZATION_PREFIXES = ['DAGGERHEART.SETTINGS.VariantRules'];
|
|
|
|
static defineSchema() {
|
|
const fields = foundry.data.fields;
|
|
return {
|
|
actionTokens: new fields.SchemaField({
|
|
enabled: new fields.BooleanField({
|
|
required: true,
|
|
initial: false,
|
|
label: 'DAGGERHEART.SETTINGS.VariantRules.FIELDS.actionTokens.enabled.label'
|
|
}),
|
|
tokens: new fields.NumberField({
|
|
required: true,
|
|
integer: true,
|
|
initial: 3,
|
|
label: 'DAGGERHEART.SETTINGS.VariantRules.FIELDS.actionTokens.tokens.label'
|
|
})
|
|
}),
|
|
useCoins: new fields.BooleanField({
|
|
initial: false,
|
|
label: 'DAGGERHEART.SETTINGS.VariantRules.FIELDS.useCoins.label'
|
|
})
|
|
};
|
|
}
|
|
}
|