mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-06 23:59:18 +08:00
Update spaz.py
This commit is contained in:
parent
1d54e322ca
commit
7d29430881
@ -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