Sword swing slight delay as sword is upgraded

This commit is contained in:
2023-03-16 23:15:55 -05:00
parent 5139f6d857
commit e3afa34088
2 changed files with 31 additions and 0 deletions

View File

@@ -3099,3 +3099,10 @@ JSL UseShovel
BCS +
RTS
NOP #4 : +
org $079D11
JSL SwordSwingDelay : NOP
org $079DAB
JSL SwordSwingDelay : NOP
org $079DEE
JSL SwordSwingDelay : NOP

View File

@@ -94,3 +94,27 @@ BunnyThrowPot:
AND.b #$7F
STA.b $3B
RTL
SwordSwingDelay:
LDA.l SwordEquipment : CMP.b #$02 : !BLT .normal
CMP.b #$FF : BEQ .normal
CPX.b #$04 : BEQ .section_4
CPX.b #$05 : BEQ .section_5
CPX.b #$06 : BNE .normal
.section_6
LDA.l SwordEquipment : CMP.b #$04 : !BGE .normal
BRA .add_one
.section_5
LDA.l SwordEquipment : CMP.b #$02 : !BGE .normal
BRA .add_one
.section_4
LDA.l SwordEquipment : CMP.b #$03 : !BGE .normal
.add_one
LDA.l $079CAF, X
STA.b $3D
INC
RTL
.normal
LDA.l $079CAF, X
STA.b $3D
RTL