No more need for the MSB in the win action.
authorJeremy Thurgood <firxen@gmail.com>
Thu, 15 May 2014 07:30:04 +0000 (09:30 +0200)
committerJeremy Thurgood <firxen@gmail.com>
Thu, 15 May 2014 07:30:04 +0000 (09:30 +0200)
naja/actions.py

index 7d5be63b7663d727fc81cd66a9105f5eda3a8927..343aeb2735f3169476ce13171964e13895668f59 100644 (file)
@@ -80,15 +80,13 @@ class LoseHealthOrMSBAndSetBits(LocationAction):
 
 
 class AcquireWinToken(LocationAction):
-    TEXT = "Acquire a win token, then clear all high bits."
-    USES_MSB = True
+    TEXT = "Acquire a win token, then clear all key bits."
 
     def perform_action(self, board, location):
-        if self.check_and_clear_MSB(board.player):
-            board.acquire_win_token()
-            board.player.bits.clear_bits(set([
-                BITS.CYAN, BITS.MAGENTA, BITS.YELLOW,
-            ]))
+        board.acquire_win_token()
+        board.player.bits.clear_bits(set([
+            BITS.CYAN, BITS.MAGENTA, BITS.YELLOW,
+        ]))
 
 
 class GainHealthAndClearBitsOrMSB(LocationAction):