Add description to Skills and Crafts and pre-emptive editing support.

This commit is contained in:
Oliver-Akins 2025-02-09 23:17:54 -07:00
parent ced2b5151b
commit f90ab0443f

View file

@ -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`,