Skip to content

Commit 30e4450

Browse files
authored
Merge pull request #19 from neph1/fix_npc_parsing
ensure lower case
2 parents 63a385f + 1383901 commit 30e4450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tale/parse_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def load_npcs(json_file: [], locations = {}):
9494
npc_type = npc.get('type', 'LivingNpc')
9595
if npc_type == 'LivingNpc':
9696
new_npc = LivingNpc(name=npc['name'],
97-
gender=npc.get('gender'.lower(), 'm'),
98-
race=npc.get('race'.lower(), 'human'),
97+
gender=npc.get('gender', 'm').lower(),
98+
race=npc.get('race', 'human').lower(),
9999
title=npc.get('title', ''),
100100
descr=npc.get('descr', ''),
101101
short_descr=npc.get('short_descr', npc.get('description', '')),

0 commit comments

Comments
 (0)