Alterable Health amount
MW2917 opened this issue · 0 comments
MW2917 commented
I think we should let hitpoints (hitpoints_max) be changeable by default, ik someone else had done it before in their modpacks, but I want it to be changeable by anyone (who open internal code like me) easily, so they might add bots with extra health (what I did), special powerup (that could interfere with hitpoints) , or you name it.
`#code from spaz.py
class Spaz(bs.Actor):
"""
Base class for various Spazzes.
Category: **Gameplay Classes**
A Spaz is the standard little humanoid character in the game.
It can be controlled by a player or by AI, and can have
various different appearances. The name 'Spaz' is not to be
confused with the 'Spaz' character in the game, which is just
one of the skins available for instances of this class.
"""
# pylint: disable=too-many-public-methods
# pylint: disable=too-many-locals
node: bs.Node
"""The 'spaz' bs.Node."""
points_mult = 1
curse_time: float | None = 5.0
default_bomb_count = 1
default_bomb_type = 'normal'
default_boxing_gloves = False
default_shields = False
hitpoints = 1000 #put hitpoint value here for it to be alterable on demand.
hitpoints_max = 1000`