Fix crash of a monster's name contains "Level"
This commit is contained in:
parent
db4091f41f
commit
e26f849215
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -18,7 +18,7 @@ def parse_MONSTERS(data):
|
||||||
# Name and level
|
# Name and level
|
||||||
if "(Level " in line:
|
if "(Level " in line:
|
||||||
name = line.split(" (")[0]
|
name = line.split(" (")[0]
|
||||||
info["stats"]["level"] = int(line.split("Level ")[1][:-1])
|
info["stats"]["level"] = int(line.split("(Level ")[1][:-1])
|
||||||
# Stat chart rows
|
# Stat chart rows
|
||||||
elif line.startswith("|"):
|
elif line.startswith("|"):
|
||||||
for stat in line[1:-1].split("|"):
|
for stat in line[1:-1].split("|"):
|
||||||
|
|
Loading…
Add table
Reference in a new issue