projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tweaked spacing on win and lose screens
[naja.git]
/
naja
/
actions.py
diff --git
a/naja/actions.py
b/naja/actions.py
index 5aa465a4c3122889e801871211432323a0cbaf71..d5e2b37227b0fb22f3ad512b6381e9537d43b4c3 100644
(file)
--- a/
naja/actions.py
+++ b/
naja/actions.py
@@
-16,6
+16,12
@@
class LocationAction(object):
self.required_bits = required_bits
self.data = data
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()
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,
]))
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):
class GainHealth(LocationAction):