mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 23:59:18 +08:00
Weak punch sound (spaz.py)
This commit is contained in:
parent
239e2be1d4
commit
0656c21647
@ -980,8 +980,10 @@ class Spaz(ba.Actor):
|
|||||||
if damage > 500:
|
if damage > 500:
|
||||||
sounds = SpazFactory.get().punch_sound_strong
|
sounds = SpazFactory.get().punch_sound_strong
|
||||||
sound = sounds[random.randrange(len(sounds))]
|
sound = sounds[random.randrange(len(sounds))]
|
||||||
else:
|
elif damage > 300:
|
||||||
sound = SpazFactory.get().punch_sound
|
sound = SpazFactory.get().punch_sound
|
||||||
|
else:
|
||||||
|
sound = SpazFactory.get().punch_sound_weak
|
||||||
ba.playsound(sound, 1.0, position=self.node.position)
|
ba.playsound(sound, 1.0, position=self.node.position)
|
||||||
|
|
||||||
# Throw up some chunks.
|
# Throw up some chunks.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user