X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Factions.py;h=d5e2b37227b0fb22f3ad512b6381e9537d43b4c3;hb=f7343261e6c9fd8b794bb8391ae0cf2d625667bb;hp=5aa465a4c3122889e801871211432323a0cbaf71;hpb=ed4a0f563fc0f8dbbda9c4ad2ef6dbde9d525abd;p=naja.git diff --git a/naja/actions.py b/naja/actions.py index 5aa465a..d5e2b37 100644 --- a/naja/actions.py +++ b/naja/actions.py @@ -16,6 +16,12 @@ class LocationAction(object): 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() @@ -175,6 +181,8 @@ class AcquireWinToken(LocationAction): 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):