mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-19 21:37:57 +08:00
Merge pull request #689 from MW2917/patch-1
having custom health amount on a spaz
This commit is contained in:
commit
162bdcd69b
@ -67,6 +67,7 @@ class Spaz(bs.Actor):
|
||||
default_bomb_type = 'normal'
|
||||
default_boxing_gloves = False
|
||||
default_shields = False
|
||||
default_hitpoints = 1000
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@ -173,8 +174,8 @@ class Spaz(bs.Actor):
|
||||
setattr(node, attr, val)
|
||||
|
||||
bs.timer(1.0, bs.Call(_safesetattr, self.node, 'invincible', False))
|
||||
self.hitpoints = 1000
|
||||
self.hitpoints_max = 1000
|
||||
self.hitpoints = self.default_hitpoints
|
||||
self.hitpoints_max = self.default_hitpoints
|
||||
self.shield_hitpoints: int | None = None
|
||||
self.shield_hitpoints_max = 650
|
||||
self.shield_decay_rate = 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user