From 5ce0059f1bf4b083792a10709d99fbf44f561109 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Wed, 18 Feb 2026 11:44:00 +0100 Subject: [PATCH] Add documentTypes section to system.json for DataModels Declare all Actor and Item types with their HTML fields. Required for Foundry VTT v13 with DataModels. Actor types: pc, npc, annency Item types: equipment, weapon, trait, specialization, maneuver, scar, annency, boheme, contact, confrontation Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- system.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/system.json b/system.json index 6d280c3..512e504 100644 --- a/system.json +++ b/system.json @@ -108,6 +108,25 @@ "verified": "13" }, "id": "fvtt-ecryme", + "documentTypes": { + "Actor": { + "pc": { "htmlFields": ["description", "gmnotes"] }, + "npc": { "htmlFields": ["description", "gmnotes"] }, + "annency": { "htmlFields": [] } + }, + "Item": { + "equipment": { "htmlFields": ["description"] }, + "weapon": { "htmlFields": ["description"] }, + "trait": { "htmlFields": ["description"] }, + "specialization": { "htmlFields": ["description"] }, + "maneuver": { "htmlFields": ["description"] }, + "scar": { "htmlFields": ["description"] }, + "annency": { "htmlFields": ["description"] }, + "boheme": { "htmlFields": ["description"] }, + "contact": { "htmlFields": ["description"] }, + "confrontation": { "htmlFields": ["description"] } + } + }, "primaryTokenAttribute": "secondary.health", "secondaryTokenAttribute": "secondary.delirium", "socket": true,