Skip to content

Commit

Permalink
ensure lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
neph1 committed Aug 30, 2023
1 parent 63a385f commit 1383901
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 1383901

Please sign in to comment.