Fix for lamp check in escape if entering from dark world. Also fixes the torch going out bug.

This commit is contained in:
aerinon
2023-01-27 15:12:30 -07:00
parent 8957b8db7b
commit 296c311b0a
3 changed files with 6 additions and 35 deletions

View File

@@ -8,16 +8,13 @@ LampCheck:
CMP.b #$FF : BNE + : INC : RTL : +
LDA LampEquipment : BNE .done ; skip if we already have lantern
LDA CurrentWorld : BNE +
.lightWorld
LDA $040C : BNE ++ ; check if we're in sewers
LDA $040C : CMP.b #$FF : BEQ +
CMP.b #$04 : BCS + ; check if we're in HC
LDA LampConeSewers : BRA .done
++
LDA LampConeLightWorld : BRA .done
+
.darkWorld
LDA LampConeDarkWorld
+ LDA CurrentWorld : BNE +
LDA LampConeLightWorld : BRA .done
+ LDA LampConeDarkWorld
.done
;BNE + : STZ $1D : + ; remember to turn cone off after a torch
RTL