Skip to content

Commit

Permalink
Merge pull request #957 from Muttley/956-shadowdarkling-no-name-bug
Browse files Browse the repository at this point in the history
Fixes #956 Add check for importing characters without a name
  • Loading branch information
Muttley authored Nov 18, 2024
2 parents d271adc + f530f8b commit afd31f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,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
* [#959] Stimulent effect description has a broken link to a Ranger talent that was converted to a Class Ability
* [#960] Add missing Berzerk class ability for Sea Wolf class

Expand Down
3 changes: 3 additions & 0 deletions system/src/apps/ShadowdarklingImporterSD.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit afd31f0

Please sign in to comment.