Skip to content

Commit

Permalink
Fix safari zone script
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Aug 21, 2024
1 parent c6b4f64 commit 5747701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pokemonred_puffer/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,12 +1166,12 @@ def skip_safari_zone_atn(self):
_, wNumBagItems = self.pyboy.symbol_lookup("wNumBagItems")
numBagItems = self.read_m(wNumBagItems)
bag = np.array(self.pyboy.memory[wBagItems : wBagItems + 40], dtype=np.uint8)
if self.events.get_event("EVENT_GOT_HM03"):
if not self.events.get_event("EVENT_GOT_HM03"):
self.events.set_event("EVENT_GOT_HM03", True)
bag[numBagItems * 2] = Items.HM_03.value
bag[numBagItems * 2 + 1] = 1
numBagItems += 1
if self.missables.get_missable("HS_SAFARI_ZONE_WEST_ITEM_4"):
if not self.missables.get_missable("HS_SAFARI_ZONE_WEST_ITEM_4"):
self.missables.set_missable("HS_SAFARI_ZONE_WEST_ITEM_4", True)
bag[numBagItems * 2] = Items.GOLD_TEETH.value
bag[numBagItems * 2 + 1] = 1
Expand Down

0 comments on commit 5747701

Please sign in to comment.