mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-07 16:13:23 +08:00
making more sense now.
thx to eraosbeta for telling me the better way to it. the previous way technically works, but I guess his way of doing makes more sense.
This commit is contained in:
parent
903cbfd145
commit
e0d918a2b0
@ -68,8 +68,8 @@ class Spaz(bs.Actor):
|
|||||||
default_bomb_type = 'normal'
|
default_bomb_type = 'normal'
|
||||||
default_boxing_gloves = False
|
default_boxing_gloves = False
|
||||||
default_shields = False
|
default_shields = False
|
||||||
hitpoints = 1000
|
default_hitpoints = 1000
|
||||||
hitpoints_max = 1000
|
default_hitpoints_max = 1000
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
@ -176,6 +176,8 @@ class Spaz(bs.Actor):
|
|||||||
setattr(node, attr, val)
|
setattr(node, attr, val)
|
||||||
|
|
||||||
bs.timer(1.0, bs.Call(_safesetattr, self.node, 'invincible', False))
|
bs.timer(1.0, bs.Call(_safesetattr, self.node, 'invincible', False))
|
||||||
|
self.hitpoints = self.default_hitpoints
|
||||||
|
self.hitpoints_max = self.default_hitpoints_max
|
||||||
self.shield_hitpoints: int | None = None
|
self.shield_hitpoints: int | None = None
|
||||||
self.shield_hitpoints_max = 650
|
self.shield_hitpoints_max = 650
|
||||||
self.shield_decay_rate = 0
|
self.shield_decay_rate = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user