Mystery Box functionality

It was a long shot, but I did it! I added the Mystery Box from Pokemon GO! Very happy with the results here.

So here's how it works: When used, the game will replace Pokemon encountered with Meltan until the player leaves the map. This is sort of how it works in GO, with the player unable to close it and naturally petering out as they play.

Now multiple Meltan can be obtained, and in abundance, just like GO. Technically, someone could use this as a pseudo-Repel to replace hard encounters with easy ones.

Oh, and I'm pretty sure this happens vs static encounters as well, but it's awkward to account for I think that's hilarious, so...
This commit is contained in:
Llinos Evans 2023-05-31 05:03:22 +01:00
parent 6d4b0f7a4e
commit 934f8adcac
15 changed files with 189 additions and 89 deletions

View file

@ -1953,7 +1953,7 @@ wCurrentBoxNum:: db
; number of HOF teams
wNumHoFTeams:: db
wUnusedD5A3:: db
ds 1 ; was wUnusedD5A3, removed when putting the Mystery Box in.
wPlayerCoins:: ds 2 ; BCD
@ -2177,7 +2177,11 @@ wDungeonWarpDestinationMap:: db
; which dungeon warp within the source map was used
wWhichDungeonWarp:: db
wUnusedD71F:: db
; Used for Meltan implementation. Replaced unused Card Key function.
; When byte is $01, Meltan has a chance to replace a Pokemon that appears.
; $00 - Not Active
; $01 - Active
wMysteryBoxActive:: db
ds 8