Skip to content

Commit

Permalink
missing escape
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexOn1ine committed Jul 30, 2024
1 parent 4913f39 commit 4038c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migration_scripts/1.9/battle_frontier_convert_parties.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re

def battle_frontier_mons(data):
data = re.sub(".itemTableId = BATTLE_FRONTIER_", ".heldItem = ", data)
data = re.sub(re.escape(".itemTableId = BATTLE_FRONTIER_"), ".heldItem = ", data)
data = re.sub(re.escape("FacilityMon"), "TrainerMon", data)
data = re.sub(re.escape(".evSpread = F_EV_SPREAD_HP,"), ".ev = TRAINER_PARTY_EVS(252, 0, 0, 0, 0, 0),", data)
data = re.sub(re.escape(".evSpread = F_EV_SPREAD_SPEED | F_EV_SPREAD_DEFENSE | F_EV_SPREAD_ATTACK,"), ".ev = TRAINER_PARTY_EVS(0, 170, 170, 170, 0, 0),", data)
Expand Down

0 comments on commit 4038c78

Please sign in to comment.