Add description to Skills and Crafts and pre-emptive editing support.
This commit is contained in:
parent
ced2b5151b
commit
f90ab0443f
1 changed files with 13 additions and 0 deletions
|
|
@ -14,6 +14,11 @@ export class SkillData extends foundry.abstract.TypeDataModel {
|
||||||
required: true,
|
required: true,
|
||||||
choices: () => Object.values(gameTerms.Abilities),
|
choices: () => Object.values(gameTerms.Abilities),
|
||||||
}),
|
}),
|
||||||
|
description: new fields.HTMLField({
|
||||||
|
blank: true,
|
||||||
|
nullable: false,
|
||||||
|
trim: true,
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
const advances = {};
|
const advances = {};
|
||||||
|
|
@ -56,6 +61,14 @@ export class SkillData extends foundry.abstract.TypeDataModel {
|
||||||
value: ability,
|
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`,
|
type: `group`,
|
||||||
title: `RipCrypt.common.advances`,
|
title: `RipCrypt.common.advances`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue