mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 15:47:06 +08:00
Update spaz.py
This commit is contained in:
parent
17d97258e9
commit
7f5746d98a
@ -1077,7 +1077,7 @@ class Spaz(ba.Actor):
|
|||||||
# us if its grown high enough.
|
# us if its grown high enough.
|
||||||
if self.hitpoints <= 0:
|
if self.hitpoints <= 0:
|
||||||
damage_avg = self.node.damage_smoothed * damage_scale
|
damage_avg = self.node.damage_smoothed * damage_scale
|
||||||
if damage_avg > 1000:
|
if damage_avg >= 1000:
|
||||||
self.shatter()
|
self.shatter()
|
||||||
|
|
||||||
elif isinstance(msg, BombDiedMessage):
|
elif isinstance(msg, BombDiedMessage):
|
||||||
@ -1343,9 +1343,9 @@ class Spaz(ba.Actor):
|
|||||||
hit_type='impact'))
|
hit_type='impact'))
|
||||||
self.node.handlemessage('knockout', max(0.0, 50.0 * intensity))
|
self.node.handlemessage('knockout', max(0.0, 50.0 * intensity))
|
||||||
sounds: Sequence[ba.Sound]
|
sounds: Sequence[ba.Sound]
|
||||||
if intensity > 5.0:
|
if intensity >= 5.0:
|
||||||
sounds = SpazFactory.get().impact_sounds_harder
|
sounds = SpazFactory.get().impact_sounds_harder
|
||||||
elif intensity > 3.0:
|
elif intensity >= 3.0:
|
||||||
sounds = SpazFactory.get().impact_sounds_hard
|
sounds = SpazFactory.get().impact_sounds_hard
|
||||||
else:
|
else:
|
||||||
sounds = SpazFactory.get().impact_sounds_medium
|
sounds = SpazFactory.get().impact_sounds_medium
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user