adds ruletext and requisite

pull/14/head
macniel 2025-09-25 21:04:03 +02:00
parent 51ad48d058
commit bef9b90901
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
const { BooleanField, NumberField, SchemaField, SetField, StringField, HtmlField } = foundry.data.fields;
const { BooleanField, NumberField, SchemaField, SetField, StringField, HTMLField } = foundry.data.fields;
export class Skill extends foundry.abstract.TypeDataModel {
@ -10,7 +10,7 @@ export class Skill extends foundry.abstract.TypeDataModel {
attributeReference2: new StringField(), // References one of the eight attributes by name
attributeReference3: new StringField(), // References one of the eight attributes by name
requisite: new StringField(), // Required skills at a given level
text: new HtmlField(),
text: new HTMLField(),
handicapValue: new NumberField(), // BE-X
complexity: new NumberField(), // In case of languages
derivedAttribute1: new NumberField(),

View File

@ -44,9 +44,9 @@
},
"Item": {
"skill": {
"StringField": ["name", "category", "attributeReference1", "attributeReference2", "attributeReference3", "requisite"],
"NumberField": ["handicapValue", "complexity"],
"HtmlField": ["text"]
"stringFields": ["name", "category", "attributeReference1", "attributeReference2", "attributeReference3", "requisite"],
"numberFields": ["handicapValue", "complexity"],
"htmlFields": ["text"]
}
}
},