23 lines
1.1 KiB
JavaScript
23 lines
1.1 KiB
JavaScript
const { BooleanField, NumberField, SchemaField, SetField, StringField, HTMLField } = foundry.data.fields;
|
|
|
|
export class Skill extends foundry.abstract.TypeDataModel {
|
|
|
|
static defineSchema() {
|
|
return {
|
|
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
|
|
requisite: new StringField(), // Required skills at a given level
|
|
text: new HTMLField(),
|
|
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
|
|
|
|
}
|
|
}
|
|
} |