In setting sheets, split feature types and make description viewable

This commit is contained in:
Carlos Fernandez 2026-06-20 20:53:35 -04:00
parent 29be8c1395
commit 9d16bc48ae
9 changed files with 123 additions and 98 deletions

View file

@ -734,7 +734,7 @@ export default function DHApplicationMixin(Base) {
* @type {ApplicationClickAction}
*/
static async #onCreateDoc(event, target) {
const { documentClass, type, inVault, disabled } = target.dataset;
const { documentClass, type, inVault, disabled, featureForm } = target.dataset;
const parentIsItem = this.document.documentName === 'Item';
const featureOnCharacter = this.document.parent?.type === 'character' && type === 'feature';
const parent = featureOnCharacter
@ -752,6 +752,7 @@ export default function DHApplicationMixin(Base) {
identifier: this.document.system.isMulticlass ? 'multiclass' : null
};
}
if (featureForm) systemData.featureForm = featureForm;
const cls =
type === 'action' ? game.system.api.models.actions.actionsTypes.base : getDocumentClass(documentClass);