Small formatting changes
This commit is contained in:
parent
c782c3a79b
commit
4b72709ae8
1 changed files with 2 additions and 3 deletions
5
main.py
5
main.py
|
@ -82,7 +82,6 @@ def parse_REMONSTERATE(data: str) -> dict[str, dict]:
|
|||
name = line.split("(")[0].strip()
|
||||
originally = line.split("(", 1)[1].split(")")[0].strip()
|
||||
sprite = line.split("->")[1].strip().strip(".")
|
||||
|
||||
result[name] = {"originally": originally, "sprite": sprite}
|
||||
|
||||
return result
|
||||
|
@ -112,8 +111,7 @@ def parse_CHARACTERS(data: str) -> dict[str, dict]: # noqa: C901
|
|||
if line[0:2].isdigit():
|
||||
name = line[4:]
|
||||
|
||||
# Stat chart rows
|
||||
# BCEX Version Only
|
||||
# Stat chart rows: BCEX Version only
|
||||
elif line.startswith("|"):
|
||||
for stat in line[1:-1].split("|"):
|
||||
if ":" in stat:
|
||||
|
@ -309,6 +307,7 @@ if __name__ == "__main__":
|
|||
for c_data in data["CHARACTERS"].values():
|
||||
if c_data["originally"].lower() == slot.lower():
|
||||
c_data["stats"] = stats
|
||||
|
||||
del data["STATS"]
|
||||
|
||||
# If we ran BCCE Remonsterate, fold sprite data into monster block
|
||||
|
|
Loading…
Add table
Reference in a new issue