Hit Points¶
Contributed by Chrono, Oscar, and Hurricanetwister24.
-
class
quest.contrib.hit_points.HitPointsMixin[source]¶ A mixin for quest.Sprite which adds hit points to a sprite.
-
max_hit_points¶ hit_points can’t go above this value. Default 100.
- Type
int
-
min_hit_points¶ hit_points can’t go below this value. Default 0.
- Type
int
-
hit_points¶ the sprite’s current hit points
- Type
int
-
change_hit_points(delta)[source]¶ Changes hit points by delta, keeping hit points within bounds. Calls on_max_hit_points and on_min_hit_points if needed.
-