adds ruletext and requisite
parent
51ad48d058
commit
bef9b90901
|
|
@ -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 {
|
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
|
attributeReference2: new StringField(), // References one of the eight attributes by name
|
||||||
attributeReference3: 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
|
requisite: new StringField(), // Required skills at a given level
|
||||||
text: new HtmlField(),
|
text: new HTMLField(),
|
||||||
handicapValue: new NumberField(), // BE-X
|
handicapValue: new NumberField(), // BE-X
|
||||||
complexity: new NumberField(), // In case of languages
|
complexity: new NumberField(), // In case of languages
|
||||||
derivedAttribute1: new NumberField(),
|
derivedAttribute1: new NumberField(),
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,9 @@
|
||||||
},
|
},
|
||||||
"Item": {
|
"Item": {
|
||||||
"skill": {
|
"skill": {
|
||||||
"StringField": ["name", "category", "attributeReference1", "attributeReference2", "attributeReference3", "requisite"],
|
"stringFields": ["name", "category", "attributeReference1", "attributeReference2", "attributeReference3", "requisite"],
|
||||||
"NumberField": ["handicapValue", "complexity"],
|
"numberFields": ["handicapValue", "complexity"],
|
||||||
"HtmlField": ["text"]
|
"htmlFields": ["text"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue