mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-04 22:43:17 +08:00
Update spaz.py
This commit is contained in:
parent
0656c21647
commit
17d97258e9
@ -966,7 +966,7 @@ class Spaz(ba.Actor):
|
|||||||
self.on_punched(damage)
|
self.on_punched(damage)
|
||||||
|
|
||||||
# If damage was significant, lets show it.
|
# If damage was significant, lets show it.
|
||||||
if damage > 350:
|
if damage >= 350:
|
||||||
assert msg.force_direction is not None
|
assert msg.force_direction is not None
|
||||||
ba.show_damage_count('-' + str(int(damage / 10)) + '%',
|
ba.show_damage_count('-' + str(int(damage / 10)) + '%',
|
||||||
msg.pos, msg.force_direction)
|
msg.pos, msg.force_direction)
|
||||||
@ -977,10 +977,10 @@ class Spaz(ba.Actor):
|
|||||||
ba.playsound(SpazFactory.get().punch_sound_stronger,
|
ba.playsound(SpazFactory.get().punch_sound_stronger,
|
||||||
1.0,
|
1.0,
|
||||||
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:
|
elif damage >= 300:
|
||||||
sound = SpazFactory.get().punch_sound
|
sound = SpazFactory.get().punch_sound
|
||||||
else:
|
else:
|
||||||
sound = SpazFactory.get().punch_sound_weak
|
sound = SpazFactory.get().punch_sound_weak
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user