Improved Psuedoboots

This commit is contained in:
codemann8
2024-12-13 16:52:20 -06:00
parent 3b41876887
commit 274ef3f39d
3 changed files with 29 additions and 2 deletions

View File

@@ -74,3 +74,22 @@ BonkRecoil:
+ +
LDA.b #$24 : STA.b LinkRecoilZ ; things we wrote over LDA.b #$24 : STA.b LinkRecoilZ ; things we wrote over
RTL RTL
;--------------------------------------------------------------------------------
BonkRecoilStop:
LDA.l BootsModifier : CMP.b #$01 : BEQ .return
LDA.l BootsEquipment : BNE .return
LDA.b LinkState : CMP.b #$02 : BNE .return
LDA.b LinkPosZ : BMI .return : CMP.b #$09 : BCC .return
LDA.b FrameCounter : AND.b #$01 : BNE .return
REP #$20
LDA.w $0114 : CMP.w #$0020 : SEP #$20 : BNE .return
LDA.b LinkRecoilY : BEQ ++ : BMI +
DEC : BRA ++
+ INC
++ STA.b LinkRecoilY
LDA.b LinkRecoilX : BEQ ++ : BMI +
DEC : BRA ++
+ INC
++ STA.b LinkRecoilX
.return
JML LinkHop_FindArbitraryLandingSpot

View File

@@ -150,8 +150,15 @@ JSL JumpDownLedge : NOP #4
;================================================================================ ;================================================================================
; Bonk Recoil ; Bonk Recoil
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
org $87922C ; 3922C <- Bank07.asm : 2869 (LDA.b #$24 : STA $29) ;org $87922C ; 3922C <- Bank07.asm : 2869 (LDA.b #$24 : STA $29)
JSL BonkRecoil ;JSL BonkRecoil
;--------------------------------------------------------------------------------
;================================================================================
; Bonk Recoil Over Pit
;--------------------------------------------------------------------------------
org $87883B
JSL BonkRecoilStop
;-------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------
;================================================================================ ;================================================================================

View File

@@ -91,6 +91,7 @@ Player_HaltDashAttackLong = $8791B3
Link_ReceiveItem = $87999D Link_ReceiveItem = $87999D
Link_ReceiveItem_cool_pose = $8799EE Link_ReceiveItem_cool_pose = $8799EE
Link_ReceiveItem_not_cool_pose = $8799F2 Link_ReceiveItem_not_cool_pose = $8799F2
LinkHop_FindArbitraryLandingSpot = $87E359
Link_HandleMovingAnimation_FullLongEntry = $87E68F Link_HandleMovingAnimation_FullLongEntry = $87E68F
Link_CheckForEdgeScreenTransition = $87F413 Link_CheckForEdgeScreenTransition = $87F413
Sprite_CheckIfPlayerPreoccupied = $87F4AA Sprite_CheckIfPlayerPreoccupied = $87F4AA