mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 23:13:46 +08:00
having custom health amount on a spaz
It's perfect for anyone who wanted an even tougher bot, powerups that can interfere with health (I already thought of steroids (Now to figure out how the hell do I make a powerup)) or any mods for mechanics they can think of without making this change manually everytime.
This commit is contained in:
parent
6674d16800
commit
903cbfd145
@ -68,6 +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
|
||||||
|
hitpoints_max = 1000
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
@ -174,8 +176,6 @@ 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 = 1000
|
|
||||||
self.hitpoints_max = 1000
|
|
||||||
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