Replace numbers with constants in PlayHitSound

This commit is contained in:
Fredrik Ljungdahl 2022-08-24 07:26:31 +02:00 committed by mid-kid
parent bc4fec0694
commit 40c899162b

View File

@ -1312,9 +1312,9 @@ endr
PlayHitSound: PlayHitSound:
ld a, [wNumHits] ld a, [wNumHits]
cp $1 cp BATTLEANIM_ENEMY_DAMAGE
jr z, .okay jr z, .okay
cp $4 cp BATTLEANIM_PLAYER_DAMAGE
ret nz ret nz
.okay .okay