Chest Key counters

This commit is contained in:
randall.rupper
2020-09-18 11:06:02 -06:00
parent 94722d452e
commit 233afa1e38
4 changed files with 51 additions and 4 deletions

View File

@@ -2,6 +2,12 @@
; Item Downgrade Fix
;--------------------------------------------------------------------------------
ItemDowngradeFix:
JSR ItemDowngradeFixMain
JSL CountChestKeyLong
RTL
ItemDowngradeFixMain:
JSL.l AddInventory
BMI .dontWrite ; thing we wrote over part 1
@@ -27,7 +33,7 @@ ItemDowngradeFix:
.done
STA [$00] ; thing we wrote over part 2
.dontWrite
RTL
RTS
.isPowerGloves
.isBlueShield
.isRedShield
@@ -36,7 +42,7 @@ RTL
.isBowAndArrows
CMP [$00] : !BGE .done ; finished if we're upgrading
LDA [$00] ; reload old value
RTL
RTS
.isSilverArrowBow
.isRedBoomerang
.isMagicPowder
@@ -47,10 +53,10 @@ RTL
LDA [$00] : BNE + ; don't upgrade if we already have the toggle for it
PLA
STA [$00]
RTL
RTS
+
PLA
RTL
RTS
.isFightersSword
.isMasterSword
.isTemperedSword