forked from CaitSith2/z3randomizer
-
Notifications
You must be signed in to change notification settings - Fork 4
/
enemy_adjustments.asm
30 lines (27 loc) · 744 Bytes
/
enemy_adjustments.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
;--------------------------------------------------------------------------------
; NewBatInit:
; make sure bats always load LW stats
;--------------------------------------------------------------------------------
NewBatInit:
;check if map id == 240 or 241
LDA $A0 : CMP #$F0 : BNE + ;oldman cave1
BRA .light_world
+
CMP #$F1 : BNE + ;oldman cave2
BRA .light_world
+
CMP #$B0 : BNE + ;agahnim statue keese
BRA .light_world
+
CMP #$D0 : BNE + ;agahnim darkmaze
BRA .light_world
+
CPY #$00 : BEQ .light_world
LDA.b #$85 : STA $0CD2, X
LDA.b #$04 : STA $0E50, X
RTL
.light_world
LDA.b #$80 : STA $0CD2, X
LDA.b #$01 : STA $0E50, X
RTL
;--------------------------------------------------------------------------------