"""
TEXT = None
- GLYPHS = ()
+ GLYPHS = (ACTION_GLYPHS.NOTHING,)
MSB_GLYPH = None
def __init__(self, required_bits, **data):
class DoNothing(LocationAction):
TEXT = "No effect."
- GLYPHS = (ACTION_GLYPHS.NOTHING,)
def perform_action(self, board, location):
pass
]))
+class GainHealth(LocationAction):
+ TEXT = "Gain {HEALTH}."
+ GLYPHS = (ACTION_GLYPHS.HEAL,)
+
+ def perform_action(self, board, location):
+ board.gain_health()
+
+
class GainHealthAndClearBitsOrMSB(LocationAction):
TEXT = "Gain {HEALTH}, then clear %(location_bits)s or {MSB}."
GLYPHS = (ACTION_GLYPHS.HEAL,)