Fix not being bunny after defeating aga2 w/o moon Pearl

This commit is contained in:
Kevin Cathcart
2018-02-05 19:36:27 -05:00
parent 16259ce158
commit 0c72ca9e0e
3 changed files with 34 additions and 0 deletions

View File

@@ -53,3 +53,28 @@ FixBunnyOnExitToLightWorld:
LDA $7EF357; thing we overwrote
RTL
;--------------------------------------------------------------------------------
;--------------------------------------------------------------------------------
; fix issue where if a player beats aga1 without moon pearl, they don't turn into
; bunny on the pyramid
FixAga2Bunny:
LDA.l FixFakeWorld : BEQ + ; Only use this fix is fakeworld fix is in use
JSL DecideIfBunny : BNE +
JSR MakeBunny
LDA.b #$04 : STA.w $012C ; play bunny music
BRA .done
+
LDA.b #$09 : STA.w $012C ; what we wrote over
.done
RTL
;--------------------------------------------------------------------------------
;--------------------------------------------------------------------------------
MakeBunny:
PHX : PHY
LDA.b #$17 : STA $5D ; set player mode to permabunny
LDA.b #$01 : STA $02E0 : STA $56 ; make player look like bunny
JSL LoadGearPalettes_bunny
PLY : PLX
RTS
;--------------------------------------------------------------------------------