mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 15:47:06 +08:00
Weak punch sound (spaz.py)
This commit is contained in:
parent
239e2be1d4
commit
0656c21647
@ -979,9 +979,11 @@ class Spaz(ba.Actor):
|
|||||||
position=self.node.position)
|
position=self.node.position)
|
||||||
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))]
|
||||||
|
elif damage > 300:
|
||||||
|
sound = SpazFactory.get().punch_sound
|
||||||
else:
|
else:
|
||||||
sound = SpazFactory.get().punch_sound
|
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