Skip to content

Commit

Permalink
Pokemon Emerald: Add +, do less hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Zunawe committed Aug 23, 2024
1 parent 3e26af0 commit 863a44f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/pokemon_emerald/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def _init() -> None:
label = []
for word in map_name[4:].split("_"):
# 1F, B1F, 2R, etc.
re_match = re.match("^B?\d[FRP]$", word)
re_match = re.match("^B?\d+[FRP]$", word)
if re_match:
label.append(word)
continue
Expand All @@ -392,7 +392,7 @@ def _init() -> None:
re_match = re.match("^([A-Z]+)(\d+)$", word)
if re_match:
label.append(re_match.group(1).capitalize())
label.append(str(int(re_match.group(2))))
label.append(re_match.group(2).lstrip("0"))
continue

if word == "OF":
Expand Down

0 comments on commit 863a44f

Please sign in to comment.