Fix For PoD accidentally arming EG.

This commit is contained in:
Kevin Cathcart
2018-07-05 19:37:55 -04:00
parent 4669f7fbf8
commit 3177ccc395
4 changed files with 32 additions and 2 deletions

View File

@@ -27,6 +27,11 @@ OnPlayerDead:
RTL
;--------------------------------------------------------------------------------
OnDungeonExit:
PHA : PHP
SEP #$20 ; set 8-bit accumulator
JSL.l PodEGFix
PLP : PLA
STA $040C : STZ $04AC ; thing we wrote over
PHA : PHP
@@ -36,6 +41,12 @@ OnDungeonExit:
PLP : PLA
RTL
;--------------------------------------------------------------------------------
OnQuit:
JSL.l PodEGFix
LDA.b #$10 : STA $1C ; thing we wrote over
RTL
;--------------------------------------------------------------------------------
OnUncleItemGet:
JSL Link_ReceiveItem