From de94d34a672d58b114ca3869925ff5c5ef30b39d Mon Sep 17 00:00:00 2001 From: Prototype Date: Mon, 18 Nov 2024 09:30:58 -0800 Subject: [PATCH 1/2] Add check for characters without name --- system/src/apps/ShadowdarklingImporterSD.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/src/apps/ShadowdarklingImporterSD.mjs b/system/src/apps/ShadowdarklingImporterSD.mjs index ecb9c1e8..67b19032 100644 --- a/system/src/apps/ShadowdarklingImporterSD.mjs +++ b/system/src/apps/ShadowdarklingImporterSD.mjs @@ -230,6 +230,9 @@ export default class ShadowdarklingImporterSD extends FormApplication { * @returns {ActorSD} */ async _importActor(json) { + // name is a required field + if (!json.name) json.name = "Unnamed"; + // set template for new actor this.importedActor = { name: json.name, From e19ec27afd2515fb79e568d9721224531a8e220b Mon Sep 17 00:00:00 2001 From: Prototype Date: Mon, 18 Nov 2024 09:34:05 -0800 Subject: [PATCH 2/2] Release Notes --- RELEASE_NOTES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 3481560c..7c35cff6 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -30,6 +30,7 @@ * [#952] NPC Special Attacks always posted to chat in public * [#953] Dice So Nice not honouring roll modes in Shadowdark * [#955] Chat message icon missing on hovering over Ancestry and Level talents on character sheet +* [#956] Can't import unnamed characters from Shadowdarklings ## Chores * [#911] Replaced compendium art mapping with default Foundry method. *(Settings for compendium art mapping are now found in *Settings > Core > Compendium Art*)*