More small fixes
This commit is contained in:
@@ -145,7 +145,7 @@ FreeDungeonItemNotice:
|
|||||||
CMP.w DungeonID : BNE +
|
CMP.w DungeonID : BNE +
|
||||||
BRA .self_notice
|
BRA .self_notice
|
||||||
.hc_sewers
|
.hc_sewers
|
||||||
LDA.w DungeonID : CMP.b #$0003 : BCS +
|
LDA.w DungeonID : CMP.w #$0003 : BCS +
|
||||||
.self_notice
|
.self_notice
|
||||||
SEP #$20
|
SEP #$20
|
||||||
%CopyDialog(Notice_Self)
|
%CopyDialog(Notice_Self)
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ RTL
|
|||||||
RTL
|
RTL
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
NewFireBarDamage:
|
NewFireBarDamage:
|
||||||
LDA.w $00EE : CMP.w SpriteLayer, X : BNE .NotSameLayer
|
LDA.b LinkLayer : CMP.w SpriteLayer, X : BNE .NotSameLayer
|
||||||
JSL Sprite_AttemptDamageToPlayerPlusRecoilLong
|
JSL Sprite_AttemptDamageToPlayerPlusRecoilLong
|
||||||
RTL
|
RTL
|
||||||
.NotSameLayer
|
.NotSameLayer
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ OnDungeonExit:
|
|||||||
STA.w DungeonID : STZ.w Map16ChangeIndex ; thing we wrote over
|
STA.w DungeonID : STZ.w Map16ChangeIndex ; thing we wrote over
|
||||||
|
|
||||||
PHA : PHP
|
PHA : PHP
|
||||||
JSL.l HUD_RebuildLong
|
|
||||||
INC.w UpdateHUD
|
INC.w UpdateHUD
|
||||||
|
JSL.l HUD_RebuildLong
|
||||||
JSL.l FloodGateResetInner
|
JSL.l FloodGateResetInner
|
||||||
JSL.l SetSilverBowMode
|
JSL.l SetSilverBowMode
|
||||||
PLP : PLA
|
PLP : PLA
|
||||||
|
|||||||
@@ -141,13 +141,13 @@ AddInventory:
|
|||||||
; Uses $0B-$0D for long absolute addressing
|
; Uses $0B-$0D for long absolute addressing
|
||||||
PHA : PHX : PHY : PHP : PHB
|
PHA : PHX : PHY : PHP : PHB
|
||||||
PHK : PLB
|
PHK : PLB
|
||||||
|
LDA.b #$7E : STA.b Scrap0D
|
||||||
LDA.l StatsLocked : BNE .done
|
LDA.l StatsLocked : BNE .done
|
||||||
LDA.w InventoryTable_properties,Y : BIT #$01 : BEQ .done
|
|
||||||
JSR.w ShopCheck : BCS .done
|
JSR.w ShopCheck : BCS .done
|
||||||
JSR.w DungeonIncrement : BCS .done
|
JSR.w DungeonIncrement : BCS .done
|
||||||
LDA.b #$7E : STA.b Scrap0D
|
|
||||||
JSR.w StampItem
|
|
||||||
JSR.w IncrementByOne
|
JSR.w IncrementByOne
|
||||||
|
LDA.w InventoryTable_properties,Y : BIT #$01 : BEQ .done
|
||||||
|
JSR.w StampItem
|
||||||
SEP #$20
|
SEP #$20
|
||||||
JSR.w IncrementYAItems
|
JSR.w IncrementYAItems
|
||||||
REP #$20
|
REP #$20
|
||||||
@@ -195,6 +195,7 @@ DungeonIncrement:
|
|||||||
JSL.l CountChestKeyLong
|
JSL.l CountChestKeyLong
|
||||||
+
|
+
|
||||||
LDA.b IndoorsFlag : BEQ .count
|
LDA.b IndoorsFlag : BEQ .count
|
||||||
|
LDA.w InventoryTable_properties,Y : BIT #$01 : BEQ .count ; Skip prizes but continue checks in AddInventory
|
||||||
LDA.w DungeonID : BMI .count
|
LDA.w DungeonID : BMI .count
|
||||||
CMP.l BallNChainDungeon : BNE +
|
CMP.l BallNChainDungeon : BNE +
|
||||||
CPY.b #$32 : BEQ .ballchain_bigkey
|
CPY.b #$32 : BEQ .ballchain_bigkey
|
||||||
|
|||||||
@@ -527,6 +527,8 @@ ItemBehavior:
|
|||||||
.same_dungeon
|
.same_dungeon
|
||||||
SEP #$20
|
SEP #$20
|
||||||
LDA.l CurrentSmallKeys : INC : STA.l CurrentSmallKeys
|
LDA.l CurrentSmallKeys : INC : STA.l CurrentSmallKeys
|
||||||
|
LSR : TAX
|
||||||
|
LDA.l DungeonKeys,X : INC : STA.l DungeonKeys,X ; Update menu key count too
|
||||||
RTS
|
RTS
|
||||||
|
|
||||||
.hc_smallkey
|
.hc_smallkey
|
||||||
|
|||||||
@@ -176,8 +176,9 @@ RTL
|
|||||||
LoadZoraKingItemGFX:
|
LoadZoraKingItemGFX:
|
||||||
LDA.l $9DE1C3 ; location randomizer writes zora item to
|
LDA.l $9DE1C3 ; location randomizer writes zora item to
|
||||||
JSL.l ResolveLootIDLong
|
JSL.l ResolveLootIDLong
|
||||||
STA.w SpriteID,X
|
STA.w SpriteID,Y
|
||||||
JML.l PrepDynamicTile
|
TYX
|
||||||
|
JML.l PrepDynamicTile_loot_resolved
|
||||||
;--------------------------------------------------------------------------------
|
;--------------------------------------------------------------------------------
|
||||||
JumpToSplashItemTarget:
|
JumpToSplashItemTarget:
|
||||||
LDA.w SpriteMovement, X
|
LDA.w SpriteMovement, X
|
||||||
@@ -198,10 +199,8 @@ DrawThrownItem:
|
|||||||
LDA.b OverworldIndex : CMP.b #$81 : BNE .catfish
|
LDA.b OverworldIndex : CMP.b #$81 : BNE .catfish
|
||||||
.zora
|
.zora
|
||||||
LDA.b #$01 : STA.l RedrawFlag
|
LDA.b #$01 : STA.l RedrawFlag
|
||||||
LDA.l $9DE1C3 ; location randomizer writes zora item to
|
|
||||||
BRA .draw
|
BRA .draw
|
||||||
.catfish
|
.catfish
|
||||||
LDA.l $9DE185 ; location randomizer writes catfish item to
|
|
||||||
.draw
|
.draw
|
||||||
LDA.w SpriteID,X
|
LDA.w SpriteID,X
|
||||||
JML DrawDynamicTile
|
JML DrawDynamicTile
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ OAM_AllocateDeferToPlayerLong = $86F86A
|
|||||||
Player_HaltDashAttackLong = $8791B3
|
Player_HaltDashAttackLong = $8791B3
|
||||||
Link_ReceiveItem = $87999D
|
Link_ReceiveItem = $87999D
|
||||||
Sprite_CheckIfPlayerPreoccupied = $87F4AA
|
Sprite_CheckIfPlayerPreoccupied = $87F4AA
|
||||||
Sprite_AttemptDamageToPlayerPlusRecoilLong = $886F42
|
Sprite_AttemptDamageToPlayerPlusRecoilLong = $86F425
|
||||||
Ancilla_Main = $888242
|
Ancilla_Main = $888242
|
||||||
Ancilla_ReceiveItem = $88C3AE
|
Ancilla_ReceiveItem = $88C3AE
|
||||||
Ancilla_BreakTowerSeal_draw_single_crystal = $88CE93
|
Ancilla_BreakTowerSeal_draw_single_crystal = $88CE93
|
||||||
|
|||||||
Reference in New Issue
Block a user