mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Groundwork for the Candy Jar rework
This does everything except the incrementation. If you defeat a Meltan, `wCandyJarCount` increments by 1, capping at 40. This is represented in-game as 10, going up to 400, simply by adding a 0 at the end. This, in effect, replicates the Meltan quest from Pokemon Go. Once 40/400 is reached, the Candy Jar will become an evolution stone, evolving Meltan. Instead of consuming the Jar, the Candies inside are zeroed out. Currently, the Candy Jar increments, but only once, thus why this is being committed on a separate branch. The bug appears to be at `engine\battle\core.asm`, line 842-861, likely 854-856. It's possible that it could be due to its position in WRAM, or that it's a `db` instead of a `dw`.
This commit is contained in:
parent
934f8adcac
commit
228de2b718
7 changed files with 93 additions and 16 deletions
|
|
@ -75,7 +75,7 @@ KeyItemFlags:
|
|||
dbit TRUE ; POKE_FLUTE
|
||||
dbit TRUE ; LIFT_KEY
|
||||
dbit FALSE ; EXP_ALL
|
||||
dbit FALSE ; was TRUE for OLD_ROD, now CANDY_SACK
|
||||
dbit TRUE ; was TRUE for OLD_ROD, now CANDY_JAR
|
||||
dbit FALSE ; was GOOD_ROD & TRUE, now BOTTLE_CAP
|
||||
dbit TRUE ; SUPER_ROD
|
||||
dbit FALSE ; PP_UP
|
||||
|
|
|
|||
|
|
@ -1834,3 +1834,10 @@ _MysteryBoxCloseText::
|
|||
text "<PLAYER> closed"
|
||||
line "the BOX!"
|
||||
prompt
|
||||
|
||||
_CandyJarCount::
|
||||
text "MELTAN CANDY:"
|
||||
line "@"
|
||||
text_bcd wCandyJarCount, 2 | LEADING_ZEROES | LEFT_ALIGN
|
||||
text "0"
|
||||
prompt
|
||||
Loading…
Add table
Add a link
Reference in a new issue