Weak punch sound (spaz.py)

This commit is contained in:
Goonz 2022-08-04 21:48:26 -05:00 committed by GitHub
parent 239e2be1d4
commit 0656c21647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -979,9 +979,11 @@ class Spaz(ba.Actor):
position=self.node.position)
if damage > 500:
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:
sound = SpazFactory.get().punch_sound
sound = SpazFactory.get().punch_sound_weak
ba.playsound(sound, 1.0, position=self.node.position)
# Throw up some chunks.