Rewind -> warp

This commit is contained in:
2024-11-22 07:40:40 -06:00
parent 87249343ed
commit 07af59720f
6 changed files with 68 additions and 68 deletions

View File

@@ -442,22 +442,6 @@ ItemBehavior:
.red_clock
REP #$20 ; set 16-bit accumulator
LDA.l RewindRoomId
CMP.w #$FFFF
BEQ +
; restore
SEP #$20
LDA.b #$01
STA.l RewindTrigger
RTS
; save
+
JSL.l SaveRewind
SEP #$20
RTS
LDA.l ChallengeTimer : !ADD.l RedClockAmount : STA.l ChallengeTimer
LDA.l ChallengeTimer+2 : ADC.l RedClockAmount+2 : STA.l ChallengeTimer+2
SEP #$20 ; set 8-bit accumulator
@@ -676,6 +660,23 @@ ItemBehavior:
.done
RTS
.teleporter
REP #$20 ; set 16-bit accumulator
LDA.l RewindRoomId
CMP.w #$FFFF
BEQ +
; restore
SEP #$20
LDA.b #$01
STA.l RewindTrigger
RTS
; save
+
JSL.l SaveRewind
SEP #$20
RTS
ResolveReceipt:
PHA : PHX
PHK : PLB
@@ -776,7 +777,6 @@ ResolveLootID:
.gloves
print ".gloves ", pc
SEP #$20
LDA.l GloveEquipment : TAX
LDA.w .gloves_ids,X