From bef9b90901df2155948c5b1954ab4458cc771d5b Mon Sep 17 00:00:00 2001 From: macniel Date: Thu, 25 Sep 2025 21:04:03 +0200 Subject: [PATCH] adds ruletext and requisite --- src/module/Items/Skill.mjs | 4 ++-- src/system.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/module/Items/Skill.mjs b/src/module/Items/Skill.mjs index 35b02d88..8796f184 100644 --- a/src/module/Items/Skill.mjs +++ b/src/module/Items/Skill.mjs @@ -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(), diff --git a/src/system.json b/src/system.json index fd07ff43..ac56dec0 100644 --- a/src/system.json +++ b/src/system.json @@ -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"] } } },