Skip to content

Commit

Permalink
Merge pull request #19 from neph1/fix_npc_parsing
Browse files Browse the repository at this point in the history
ensure lower case
  • Loading branch information
neph1 authored Aug 30, 2023
2 parents 63a385f + 1383901 commit 30e4450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tale/parse_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def load_npcs(json_file: [], locations = {}):
npc_type = npc.get('type', 'LivingNpc')
if npc_type == 'LivingNpc':
new_npc = LivingNpc(name=npc['name'],
gender=npc.get('gender'.lower(), 'm'),
race=npc.get('race'.lower(), 'human'),
gender=npc.get('gender', 'm').lower(),
race=npc.get('race', 'human').lower(),
title=npc.get('title', ''),
descr=npc.get('descr', ''),
short_descr=npc.get('short_descr', npc.get('description', '')),
Expand Down

0 comments on commit 30e4450

Please sign in to comment.