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,
label: 'DSA41.SheetLabels.Item',
});
return preloadHandlebarsTemplates();
})

View File

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