You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Miscellaneous cleanup
This commit is contained in:
@@ -223,16 +223,21 @@ UpdateChannels:
|
||||
jp hl
|
||||
|
||||
.ChannelFunctions:
|
||||
table_width 2, UpdateChannels.ChannelFunctions
|
||||
; music channels
|
||||
dw .Channel1
|
||||
dw .Channel2
|
||||
dw .Channel3
|
||||
dw .Channel4
|
||||
; sfx ch ptrs are identical to music chs
|
||||
; ..except 5
|
||||
assert_table_length NUM_MUSIC_CHANS
|
||||
; sfx channels
|
||||
; identical to music channels, except .Channel5 is not disabled by the low-HP danger sound
|
||||
; (instead, PlayDanger does not play the danger sound if sfx is playing)
|
||||
dw .Channel5
|
||||
dw .Channel6
|
||||
dw .Channel7
|
||||
dw .Channel8
|
||||
assert_table_length NUM_CHANNELS
|
||||
|
||||
.Channel1:
|
||||
ld a, [wLowHealthAlarm]
|
||||
@@ -2777,16 +2782,19 @@ StereoTracks:
|
||||
db $11, $22, $44, $88
|
||||
|
||||
ChannelPointers:
|
||||
table_width 2, ChannelPointers
|
||||
; music channels
|
||||
dw wChannel1
|
||||
dw wChannel2
|
||||
dw wChannel3
|
||||
dw wChannel4
|
||||
assert_table_length NUM_MUSIC_CHANS
|
||||
; sfx channels
|
||||
dw wChannel5
|
||||
dw wChannel6
|
||||
dw wChannel7
|
||||
dw wChannel8
|
||||
assert_table_length NUM_CHANNELS
|
||||
|
||||
ClearChannels::
|
||||
; runs ClearChannel for all 4 channels
|
||||
|
Reference in New Issue
Block a user