From b5bef85fbe189d06a0519f8d3cacdac77a7c4e29 Mon Sep 17 00:00:00 2001 From: Samuel Lopez Date: Sat, 7 Mar 2026 09:18:33 +0100 Subject: [PATCH] fix (#359): save profession npc --- CHANGELOG.md | 3 ++- module/data/actor/npc.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0001e0d..d1bbffd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,11 +12,12 @@ - [#283](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/283) - Added new actor sheet with left hand Sidebar RFC - [#291](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/291) - Moving Luck button from three dots to left hand panel -## Version 1.6.6 - 2026-02-XX +## Version 1.6.6 - 2026-03-XX ### **Bug Fixes:** - [#355](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/355) - Save the physical description of an agent. +- [#359](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/359) - Save the profession of an NPC. ## Version 1.6.5 - 2026-02-17 diff --git a/module/data/actor/npc.js b/module/data/actor/npc.js index ff67ffd..623d360 100644 --- a/module/data/actor/npc.js +++ b/module/data/actor/npc.js @@ -16,6 +16,9 @@ export default class NPCData extends CharacterData { value: new NumberField({ initial: 100 }), currentBreakingPoint: new NumberField({ initial: 101 }), }), + biography: new SchemaField({ + profession: new StringField({ initial: "" }), + }), notes: new StringField({ initial: "" }), shortDescription: new StringField({ initial: "" }), showUntrainedSkills: new BooleanField({ initial: true }),