From: Jeremy Thurgood Date: Thu, 15 May 2014 07:30:04 +0000 (+0200) Subject: No more need for the MSB in the win action. X-Git-Tag: 0.1~290 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=74d4017fa5fab71e17062e79399a38d039630a97;p=naja.git No more need for the MSB in the win action. --- diff --git a/naja/actions.py b/naja/actions.py index 7d5be63..343aeb2 100644 --- a/naja/actions.py +++ b/naja/actions.py @@ -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):