From a728760de03a78bdd8d17008584a1e189d19b7ac Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sun, 31 May 2026 00:38:54 +0200 Subject: [PATCH] Changed npc.motives to be a simple string field --- module/data/actor/npc.mjs | 2 +- styles/less/sheets/actors/npc/header.less | 6 ------ system.json | 2 +- templates/sheets-settings/npc-settings/details.hbs | 6 +----- templates/sheets/actors/npc/header.hbs | 4 ++-- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/module/data/actor/npc.mjs b/module/data/actor/npc.mjs index d8dc3663..cc20f754 100644 --- a/module/data/actor/npc.mjs +++ b/module/data/actor/npc.mjs @@ -25,7 +25,7 @@ export default class DhpNPC extends BaseDataActor { label: 'DAGGERHEART.GENERAL.difficulty' }), description: new fields.HTMLField({ label: 'DAGGERHEART.GENERAL.description' }), - motives: new fields.HTMLField(), + motives: new fields.StringField(), notes: new fields.HTMLField() }; } diff --git a/styles/less/sheets/actors/npc/header.less b/styles/less/sheets/actors/npc/header.less index bea9410c..d49d763c 100644 --- a/styles/less/sheets/actors/npc/header.less +++ b/styles/less/sheets/actors/npc/header.less @@ -77,12 +77,6 @@ flex-direction: column; gap: 12px; padding: 16px 0; - - .motives-and-tactics { - p:first-of-type { - margin: 0; - } - } } } } diff --git a/system.json b/system.json index c8401fa0..89320768 100644 --- a/system.json +++ b/system.json @@ -251,7 +251,7 @@ "htmlFields": ["notes", "description"] }, "party": { - "htmlFields": ["notes", "description", "motives"] + "htmlFields": ["notes", "description"] } }, "Item": { diff --git a/templates/sheets-settings/npc-settings/details.hbs b/templates/sheets-settings/npc-settings/details.hbs index 9c76ee28..0e18b488 100644 --- a/templates/sheets-settings/npc-settings/details.hbs +++ b/templates/sheets-settings/npc-settings/details.hbs @@ -8,10 +8,6 @@ {{formInput systemFields.description value=document._source.system.description}} -
- {{localize "DAGGERHEART.ACTORS.NPC.FIELDS.motives.label"}} - {{formInput systemFields.motives value=document._source.system.motives}} -
- + {{formGroup systemFields.motives value=document._source.system.motives}} {{formGroup systemFields.difficulty value=document._source.system.difficulty localize=true}} diff --git a/templates/sheets/actors/npc/header.hbs b/templates/sheets/actors/npc/header.hbs index 11c6abbe..8dc345dc 100644 --- a/templates/sheets/actors/npc/header.hbs +++ b/templates/sheets/actors/npc/header.hbs @@ -32,8 +32,8 @@ {{{description}}}
- {{localize 'DAGGERHEART.ACTORS.NPC.FIELDS.motives.label'}} - {{{source.system.motives}}} + {{localize 'DAGGERHEART.ACTORS.NPC.FIELDS.motives.label'}}: + {{source.system.motives}}