invoking constructors

pull/14/head
macniel 2025-09-25 20:02:38 +02:00
parent 48c6d1123d
commit 192b1b4252
2 changed files with 11 additions and 14 deletions

View File

@ -24,7 +24,4 @@ Hooks.once("init", () => {
makeDefault: true, makeDefault: true,
label: 'DSA41.SheetLabels.Item', label: 'DSA41.SheetLabels.Item',
}); });
return preloadHandlebarsTemplates();
}) })

View File

@ -4,17 +4,17 @@ export class Skill extends foundry.abstract.TypeDataModel {
static defineSchema() { static defineSchema() {
return { return {
name: StringField({ required: true }), name: new StringField({ required: true }),
category: StringField({ required: true }), category: new StringField({ required: true }),
attributeReference1: StringField(), // References one of the eight attributes by name attributeReference1: new StringField(), // References one of the eight attributes by name
attributeReference2: StringField(), // References one of the eight attributes by name attributeReference2: new StringField(), // References one of the eight attributes by name
attributeReference3: StringField(), // References one of the eight attributes by name attributeReference3: new StringField(), // References one of the eight attributes by name
handicapValue: NumberField(), // BE-X handicapValue: new NumberField(), // BE-X
complexity: NumberField(), // In case of languages complexity: new NumberField(), // In case of languages
derivedAttribute1: NumberField(), derivedAttribute1: new NumberField(),
derivedAttribute2: NumberField(), derivedAttribute2: new NumberField(),
derivedAttribute3: NumberField(), derivedAttribute3: new NumberField(),
derivedSkillValue: NumberField(), // TaW derivedSkillValue: new NumberField(), // TaW
} }
} }