mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 23:13:46 +08:00
commit
d21958bcbd
@ -1136,7 +1136,7 @@ class Spaz(bs.Actor):
|
|||||||
if self.hitpoints > 0:
|
if self.hitpoints > 0:
|
||||||
# It's kinda crappy to die from impacts, so lets reduce
|
# It's kinda crappy to die from impacts, so lets reduce
|
||||||
# impact damage by a reasonable amount *if* it'll keep us alive.
|
# impact damage by a reasonable amount *if* it'll keep us alive.
|
||||||
if msg.hit_type == 'impact' and damage > self.hitpoints:
|
if msg.hit_type == 'impact' and damage >= self.hitpoints:
|
||||||
# Drop damage to whatever puts us at 10 hit points,
|
# Drop damage to whatever puts us at 10 hit points,
|
||||||
# or 200 less than it used to be whichever is greater
|
# or 200 less than it used to be whichever is greater
|
||||||
# (so it *can* still kill us if its high enough).
|
# (so it *can* still kill us if its high enough).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user