aboutsummaryrefslogtreecommitdiff
path: root/parser
diff options
context:
space:
mode:
Diffstat (limited to 'parser')
-rwxr-xr-xparser/scrapeToJson.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/parser/scrapeToJson.py b/parser/scrapeToJson.py
index c4627ea..b1534c2 100755
--- a/parser/scrapeToJson.py
+++ b/parser/scrapeToJson.py
@@ -49,6 +49,10 @@ def processMonster(data, weapons, armors, spells):
return (desc['stats'][ability] - 10) // 2
desc['inventory'] = [] # Fill with weapons and armor
desc['observant'] = False # maybe set to true later
+ # Add a few null-valued items that will be set when the creature is first generated
+ desc['givenName'] = 'NAME'
+ desc['hpMax'] = -1
+ desc['hp'] = -1
# Modify ac stuff
desc['natural_armor'] = {'name': '', 'bonus': 0}
correctAC = int(desc['ac'].split(' ')[0] if ' ' in desc['ac'] else desc['ac'])