Randomize Ganon items
This commit is contained in:
Binary file not shown.
BIN
data/i18n_en.bin
BIN
data/i18n_en.bin
Binary file not shown.
@@ -252,8 +252,8 @@ DialogGanon2:
|
|||||||
LDA.w #$018D : JMP .done
|
LDA.w #$018D : JMP .done
|
||||||
+
|
+
|
||||||
JSL CheckMushroom
|
JSL CheckMushroom
|
||||||
LDA.w #$0198 : JMP .done
|
|
||||||
BCC +
|
BCC +
|
||||||
|
LDA.w #$0198 : JMP .done
|
||||||
+
|
+
|
||||||
LDA.l GanonVulnerabilityItem : AND #$00FF : BNE .special_item
|
LDA.l GanonVulnerabilityItem : AND #$00FF : BNE .special_item
|
||||||
LDA.l SpecialWeapons : AND.w #$00FF
|
LDA.l SpecialWeapons : AND.w #$00FF
|
||||||
|
|||||||
@@ -2694,3 +2694,11 @@ db $00, $EE, $DE, $D4, $D0, $D4, $DE, $EE
|
|||||||
org $05A4BD
|
org $05A4BD
|
||||||
JSL SetLanmolaVelocity
|
JSL SetLanmolaVelocity
|
||||||
BRA + : NOP #4 : +
|
BRA + : NOP #4 : +
|
||||||
|
|
||||||
|
; ganon - silvers just don't work like they used to
|
||||||
|
org $0DB93D
|
||||||
|
db $08
|
||||||
|
|
||||||
|
; ganon - randomize vulnerability when stunned
|
||||||
|
org $1D9010
|
||||||
|
JSL StunGanon : NOP
|
||||||
|
|||||||
2
ram.asm
2
ram.asm
@@ -525,7 +525,7 @@ OHKOFlag: skip 1 ; Any non-zero write sets OHKO mode
|
|||||||
SpriteSwapper: skip 1 ; Loads new link sprite and glove/armor palette. No gfx or
|
SpriteSwapper: skip 1 ; Loads new link sprite and glove/armor palette. No gfx or
|
||||||
; code currently in base ROM for this.
|
; code currently in base ROM for this.
|
||||||
BootsModifier: skip 1 ; $01 = Give dash ability
|
BootsModifier: skip 1 ; $01 = Give dash ability
|
||||||
skip 1 ; Unused
|
GanonVulnerabilityItem: skip 1 ; Item Ganon is vulnerable to while stunned
|
||||||
; Crypto Block ($7F50D0 - $7F51FF)
|
; Crypto Block ($7F50D0 - $7F51FF)
|
||||||
KeyBase: skip $10 ;
|
KeyBase: skip $10 ;
|
||||||
y: skip 4 ;
|
y: skip 4 ;
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ ChallengeModes:
|
|||||||
db #$00 ; #$00 = Default behavior;
|
db #$00 ; #$00 = Default behavior;
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $30802E ; PC 0x18003E
|
org $30802E ; PC 0x18003E
|
||||||
GanonVulnerabilityItem:
|
DONOTUSE__GanonVulnerabilityItem:
|
||||||
db #$00 ; #$00 = Default behavior (silver arrows)
|
db #$00 ; #$00 = Default behavior (silver arrows)
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $30802F ; PC 0x18003F
|
org $30802F ; PC 0x18003F
|
||||||
|
|||||||
@@ -126,6 +126,53 @@ CheckBeeBoss:
|
|||||||
RTL
|
RTL
|
||||||
; return non-zero A if entity is a boss (and bee should not attack)
|
; return non-zero A if entity is a boss (and bee should not attack)
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
|
StunGanon:
|
||||||
|
JSL GetRandomInt
|
||||||
|
BIT.b #$30
|
||||||
|
BEQ .non_magic
|
||||||
|
.magic
|
||||||
|
AND.b #$0E
|
||||||
|
LSR
|
||||||
|
BRA .chosen
|
||||||
|
.non_magic
|
||||||
|
AND.b #$0C
|
||||||
|
LSR #2
|
||||||
|
ORA.b #$08
|
||||||
|
.chosen
|
||||||
|
PHX
|
||||||
|
TAX
|
||||||
|
LDA.l Ganon_RandomizeItem, X
|
||||||
|
STA.l GanonVulnerabilityItem
|
||||||
|
PLX
|
||||||
|
JSL DialogItem
|
||||||
|
LDA.b #$D7
|
||||||
|
STA.w $0E20, X
|
||||||
|
RTL
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
|
DialogItem:
|
||||||
|
PHX : PHY
|
||||||
|
LDA.l GanonVulnerabilityItem
|
||||||
|
ASL
|
||||||
|
TAX
|
||||||
|
LDA.l Ganon_TextBox+1, X
|
||||||
|
TAY
|
||||||
|
LDA.l Ganon_TextBox, X
|
||||||
|
JSL Sprite_ShowMessageUnconditional
|
||||||
|
PLY : PLX
|
||||||
|
RTL
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
|
Ganon_RandomizeItem:
|
||||||
|
db #$05, #$06, #$07, #$08
|
||||||
|
db #$09, #$0A, #$11, #$12
|
||||||
|
db #$01, #$02, #$03, #$0C
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
|
Ganon_TextBox:
|
||||||
|
dw #$0000 ; default behavior--assume silvers
|
||||||
|
dw #$0199, #$019A, #$019B, #$019C, #$019D
|
||||||
|
dw #$019E, #$019F, #$01A0, #$01A1, #$01A2
|
||||||
|
dw #$0000, #$01A3, #$0000, #$0000, #$0000
|
||||||
|
dw #$01A4, #$01A5, #$01A6, #$0000, #$0000
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
Ganon_CheckByAncilla:
|
Ganon_CheckByAncilla:
|
||||||
db #$00 ; default behavior--we shouldn't be checking the table here anyway
|
db #$00 ; default behavior--we shouldn't be checking the table here anyway
|
||||||
db #$00, #$05, #$1F, #$07, #$00
|
db #$00, #$05, #$1F, #$07, #$00
|
||||||
|
|||||||
Reference in New Issue
Block a user