From f90ab0443f64518f9cf0ec86bb472b9e26cbcc52 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sun, 9 Feb 2025 23:17:54 -0700 Subject: [PATCH] Add description to Skills and Crafts and pre-emptive editing support. --- module/data/Item/Skill.mjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/module/data/Item/Skill.mjs b/module/data/Item/Skill.mjs index 49df190..11c5562 100644 --- a/module/data/Item/Skill.mjs +++ b/module/data/Item/Skill.mjs @@ -14,6 +14,11 @@ export class SkillData extends foundry.abstract.TypeDataModel { required: true, choices: () => Object.values(gameTerms.Abilities), }), + description: new fields.HTMLField({ + blank: true, + nullable: false, + trim: true, + }), }; const advances = {}; @@ -56,6 +61,14 @@ export class SkillData extends foundry.abstract.TypeDataModel { value: ability, })), }, + { + // TODO: Figure out how tf to make this work nicely on a generic level + id: `description`, + type: `prosemirror`, + label: `RipCrypt.common.description`, + path: `system.description`, + collaborative: true, + }, { type: `group`, title: `RipCrypt.common.advances`,