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'
}),
description: new fields.HTMLField({ label: 'DAGGERHEART.GENERAL.description' }),
motives: new fields.HTMLField(),
motives: new fields.StringField(),
notes: new fields.HTMLField()
};
}

View file

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

View file

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

View file

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

View file

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