Changed npc.motives to be a simple string field

This commit is contained in:
WBHarry 2026-05-31 00:38:54 +02:00
parent 0b9c4500fa
commit a728760de0
5 changed files with 5 additions and 15 deletions

View file

@ -25,7 +25,7 @@ export default class DhpNPC extends BaseDataActor {
label: 'DAGGERHEART.GENERAL.difficulty' label: 'DAGGERHEART.GENERAL.difficulty'
}), }),
description: new fields.HTMLField({ label: 'DAGGERHEART.GENERAL.description' }), description: new fields.HTMLField({ label: 'DAGGERHEART.GENERAL.description' }),
motives: new fields.HTMLField(), motives: new fields.StringField(),
notes: new fields.HTMLField() notes: new fields.HTMLField()
}; };
} }

View file

@ -77,12 +77,6 @@
flex-direction: column; flex-direction: column;
gap: 12px; gap: 12px;
padding: 16px 0; padding: 16px 0;
.motives-and-tactics {
p:first-of-type {
margin: 0;
}
}
} }
} }
} }

View file

@ -251,7 +251,7 @@
"htmlFields": ["notes", "description"] "htmlFields": ["notes", "description"]
}, },
"party": { "party": {
"htmlFields": ["notes", "description", "motives"] "htmlFields": ["notes", "description"]
} }
}, },
"Item": { "Item": {

View file

@ -8,10 +8,6 @@
{{formInput systemFields.description value=document._source.system.description}} {{formInput systemFields.description value=document._source.system.description}}
</fieldset> </fieldset>
<fieldset> {{formGroup systemFields.motives value=document._source.system.motives}}
<legend>{{localize "DAGGERHEART.ACTORS.NPC.FIELDS.motives.label"}}</legend>
{{formInput systemFields.motives value=document._source.system.motives}}
</fieldset>
{{formGroup systemFields.difficulty value=document._source.system.difficulty localize=true}} {{formGroup systemFields.difficulty value=document._source.system.difficulty localize=true}}
</section> </section>

View file

@ -32,8 +32,8 @@
<i>{{{description}}}</i> <i>{{{description}}}</i>
</span> </span>
<div class="motives-and-tactics"> <div class="motives-and-tactics">
<b>{{localize 'DAGGERHEART.ACTORS.NPC.FIELDS.motives.label'}}</b> <b>{{localize 'DAGGERHEART.ACTORS.NPC.FIELDS.motives.label'}}: </b>
{{{source.system.motives}}} {{source.system.motives}}
</div> </div>
</div> </div>
</div> </div>