This commit is contained in:
WBHarry 2026-05-30 23:22:03 +02:00
parent 25f27c8891
commit 0b9c4500fa
4 changed files with 10 additions and 7 deletions

View file

@ -336,9 +336,7 @@
},
"NPC": {
"FIELDS": {
"difficulty": { "label": "Difficulty" },
"motives": { "label": "Motives" },
"description": { "label": "Description" }
"motives": { "label": "Motives" }
}
},
"Party": {

View file

@ -18,8 +18,13 @@ export default class DhpNPC extends BaseDataActor {
const fields = foundry.data.fields;
return {
...super.defineSchema(),
difficulty: new fields.NumberField({ nullable: true, initial: null, integer: true }),
description: new fields.HTMLField(),
difficulty: new fields.NumberField({
nullable: true,
initial: null,
integer: true,
label: 'DAGGERHEART.GENERAL.difficulty'
}),
description: new fields.HTMLField({ label: 'DAGGERHEART.GENERAL.description' }),
motives: new fields.HTMLField(),
notes: new fields.HTMLField()
};

View file

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

View file

@ -4,7 +4,7 @@
data-group='{{tabs.details.group}}'
>
<fieldset>
<legend>{{localize "DAGGERHEART.ACTORS.NPC.FIELDS.description.label"}}</legend>
<legend>{{localize "DAGGERHEART.GENERAL.description"}}</legend>
{{formInput systemFields.description value=document._source.system.description}}
</fieldset>