Fix moldorm/somaria issue and add both-canes mode

This commit is contained in:
2021-12-22 00:28:27 -08:00
parent 6279f32fe3
commit 265089cedb
6 changed files with 88 additions and 27 deletions

View File

@@ -557,6 +557,10 @@ AddInventory:
CPY.b #$B7 : !BGE +
JSR .incrementBombLevel
JMP .done
+ CPY.b #$B7 : !BLT + ; Items $B7 - $BC - Cane Upgrades
CPY.b #$BD : !BGE +
JSR .incrementCaneLevel
JMP .done
+
.done
PLP : PLX : PLA
@@ -630,6 +634,10 @@ RTS
JSR .stampSword ; update "first bomb" timestamp
RTS
.incrementCaneLevel
JSR .stampSword ; update "first cane" timestamp
RTS
.incrementShield
; CHECK FOR DUPLICATE SHIELDS
LDA $7EF422 : !ADD #$08 : AND #$18 : TAX
@@ -729,6 +737,7 @@ RTL
LDA SpecialWeapons : CMP #$01 : BEQ +
CMP #$03 : BEQ +
CMP #$04 : BEQ +
CMP #$05 : BEQ +
LDA $7EF359 : BRA ++
+ : LDA !WEAPON_LEVEL
++