mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
Move crysaudio ram from sram to wram
This commit is contained in:
parent
baf447a260
commit
5f87413b23
12 changed files with 253 additions and 379 deletions
|
|
@ -781,10 +781,10 @@ FaintEnemyPokemon:
|
|||
ld [wTempoModifier], a
|
||||
ld a, SFX_FAINT_FALL
|
||||
call PlaySoundWaitForCurrent
|
||||
.sfxwait
|
||||
ld a, [wChannelSoundIDs + Ch5]
|
||||
cp SFX_FAINT_FALL
|
||||
jr z, .sfxwait
|
||||
;.sfxwait
|
||||
; ld a, [wChannelSoundIDs + Ch5]
|
||||
; cp SFX_FAINT_FALL
|
||||
; jr z, .sfxwait
|
||||
ld a, SFX_FAINT_THUD
|
||||
call PlaySound
|
||||
call WaitForSoundToFinish
|
||||
|
|
@ -866,7 +866,7 @@ EndLowHealthAlarm:
|
|||
; the low health alarm and prevents it from reactivating until the next battle.
|
||||
xor a
|
||||
ld [wLowHealthAlarm], a ; turn off low health alarm
|
||||
ld [wChannelSoundIDs + Ch5], a
|
||||
; ld [wChannelSoundIDs + Ch5], a
|
||||
inc a
|
||||
ld [wLowHealthAlarmDisabled], a ; prevent it from reactivating
|
||||
ret
|
||||
|
|
@ -1864,7 +1864,7 @@ DrawPlayerHUDAndHPBar:
|
|||
ld [hl], $0
|
||||
ret z
|
||||
xor a
|
||||
ld [wChannelSoundIDs + Ch5], a
|
||||
; ld [wChannelSoundIDs + Ch5], a
|
||||
ret
|
||||
.setLowHealthAlarm
|
||||
ld hl, wLowHealthAlarm
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ EndOfBattle:
|
|||
.resetVariables
|
||||
xor a
|
||||
ld [wLowHealthAlarm], a ;disable low health alarm
|
||||
ld [wChannelSoundIDs + Ch5], a
|
||||
; ld [wChannelSoundIDs + Ch5], a
|
||||
ld [wIsInBattle], a
|
||||
ld [wBattleType], a
|
||||
ld [wMoveMissed], a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue