Allow Ganon to be vulnerable to arbitrary item

This commit is contained in:
2021-06-26 08:11:01 -07:00
parent 8b0f0464f8
commit b8dc86d7c5
7 changed files with 218 additions and 12 deletions

View File

@@ -149,7 +149,17 @@ CheckGanonHammerDamage:
LDA $0E20, X : CMP.b #$D8 ; original behavior except ganon
RTL
+
LDA.l GanonVulnerabilityItem : CMP.b #$0C : BEQ +
LDA $0E20, X : CMP.b #$D6 ; original behavior
RTL
+
LDA $0E20, X : CMP.b #$D8 : BCC +
RTL
+
CMP.b #$D6 : BNE +
RTL
+
CLC
RTL
;================================================================================
GetSmithSword: