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:
rabbitboom 2024-04-09 18:33:33 +01:00 committed by GitHub
parent 6674d16800
commit 903cbfd145
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,6 +68,8 @@ class Spaz(bs.Actor):
default_bomb_type = 'normal'
default_boxing_gloves = False
default_shields = False
hitpoints = 1000
hitpoints_max = 1000
def __init__(
self,
@ -174,8 +176,6 @@ 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.shield_hitpoints: int | None = None
self.shield_hitpoints_max = 650
self.shield_decay_rate = 0