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": { "NPC": {
"FIELDS": { "FIELDS": {
"difficulty": { "label": "Difficulty" }, "motives": { "label": "Motives" }
"motives": { "label": "Motives" },
"description": { "label": "Description" }
} }
}, },
"Party": { "Party": {

View file

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

View file

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

View file

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