diff --git a/main.py b/main.py index 4b92d47..2f2e51d 100644 --- a/main.py +++ b/main.py @@ -10,7 +10,9 @@ import sys def parse_MONSTERS(data): result = {} for m_text in data.split("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"): - info = {"stats": {}, "spells": {}} + info = {} + info["stats"] = {} + info["spells"] = {} name = "NULL" for line in m_text.split("\n"): # Name and level