self.required_bits = required_bits
self.data = data
+ def get_glyphs(self):
+ return self.GLYPHS
+
+ def get_msb_glyph(self):
+ return self.MSB_GLYPH
+
def get_text(self, location=None):
substitutions = self.data.copy()
bits.clear_bits(self.clear_bits)
def get_text(self, location=None):
+ if 'message' in self.data:
+ return super(GenericBits, self).get_text()
parts = []
for template, bits in [
('Set %s.', self.set_bits), ('Clear %s.', self.clear_bits),
board.player.bits.clear_bits(set([
BITS.RED, BITS.GREEN, BITS.BLUE,
]))
+ if self.data.get('once', False):
+ location.actions.remove(self)
class GainHealth(LocationAction):