Add support for swords in swordless mode to the rom (does nothing without vt-randomizer changes)
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
;================================================================================
|
;================================================================================
|
||||||
; The Legend of Zelda, A Link to the Past - Randomizer General Development & Bugfixes
|
; The Legend of Zelda, A Link to the Past - Randomizer General Development & Bugfixes
|
||||||
;================================================================================
|
;================================================================================
|
||||||
|
|
||||||
lorom
|
lorom
|
||||||
|
|
||||||
;================================================================================
|
;================================================================================
|
||||||
|
|||||||
@@ -1013,6 +1013,9 @@ JSL.l CheckTabletSword
|
|||||||
org $05F40A ; <- 2F40A - sprite_medallion_tablet.asm:303 (LDA $7EF359 : BMI .show_hylian_script)
|
org $05F40A ; <- 2F40A - sprite_medallion_tablet.asm:303 (LDA $7EF359 : BMI .show_hylian_script)
|
||||||
JSL.l CheckTabletSword
|
JSL.l CheckTabletSword
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
|
org $1DF086 ; <- EF086 - sprite_evil_barrier.asm:303 (LDA $7EF359 : CMP.b #$02 : BCS .anozap_from_player_attack)
|
||||||
|
JSL.l GetSwordLevelForEvilBarrier
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
|
|
||||||
;================================================================================
|
;================================================================================
|
||||||
; Medallion Tablets
|
; Medallion Tablets
|
||||||
|
|||||||
@@ -122,6 +122,13 @@ CheckTabletSword:
|
|||||||
LDA $7EF359 ; get actual sword value
|
LDA $7EF359 ; get actual sword value
|
||||||
RTL
|
RTL
|
||||||
;================================================================================
|
;================================================================================
|
||||||
|
GetSwordLevelForEvilBarrier:
|
||||||
|
LDA.l AllowHammerEvilBarrierWithFighterSword : BEQ +
|
||||||
|
LDA #$FF : RTL
|
||||||
|
+
|
||||||
|
LDA $7EF359
|
||||||
|
RTL
|
||||||
|
;================================================================================
|
||||||
CheckGanonHammerDamage:
|
CheckGanonHammerDamage:
|
||||||
LDA.l HammerableGanon : BEQ +
|
LDA.l HammerableGanon : BEQ +
|
||||||
LDA $0E20, X : CMP.b #$D8 ; original behavior except ganon
|
LDA $0E20, X : CMP.b #$D8 ; original behavior except ganon
|
||||||
|
|||||||
@@ -178,6 +178,10 @@ org $308044 ; PC 0x180044
|
|||||||
AllowHammerTablets:
|
AllowHammerTablets:
|
||||||
db #$00 ; #$00 = Off (default) - #$01 = On
|
db #$00 ; #$00 = Off (default) - #$01 = On
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
|
org $30805D ; PC 0x18005D
|
||||||
|
AllowHammerEvilBarrierWithFighterSword:
|
||||||
|
db #$00 ; #$00 = Off (default) - #$01 = On
|
||||||
|
;--------------------------------------------------------------------------------
|
||||||
org $308045 ; PC 0x180045
|
org $308045 ; PC 0x180045
|
||||||
HUDDungeonItems:
|
HUDDungeonItems:
|
||||||
db #$00 ; display ----dcba a: Small Keys, b: Big Key, c: Map, d: Compass
|
db #$00 ; display ----dcba a: Small Keys, b: Big Key, c: Map, d: Compass
|
||||||
@@ -251,7 +255,7 @@ CrystalPendantFlags_2:
|
|||||||
;Pendant: $00
|
;Pendant: $00
|
||||||
;Crystal: $40
|
;Crystal: $40
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
; 0x18005D - 0x18005F (unused)
|
; 0x18005E - 0x18005F (unused)
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
org $308060 ; PC 0x180060 - 0x18007E
|
org $308060 ; PC 0x180060 - 0x18007E
|
||||||
ProgrammableItemLogicJump_1:
|
ProgrammableItemLogicJump_1:
|
||||||
|
|||||||
Reference in New Issue
Block a user