From: David Sharpe Date: Sat, 17 May 2014 20:11:57 +0000 (+0200) Subject: Mor deth wit speling X-Git-Tag: 0.1~31 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=4e9c82b88ace9e6b817e89337041194fca51811a;p=naja.git Mor deth wit speling --- diff --git a/data/location_decks/standard.yaml b/data/location_decks/standard.yaml index ee05512..58ecaf8 100644 --- a/data/location_decks/standard.yaml +++ b/data/location_decks/standard.yaml @@ -116,7 +116,7 @@ _action_definitions: # Three-colour actions. - &ACQUIRE-WIN-TOKEN-AND-LOSE-HEALTH - action_class: 'AcquireWinTokenAndLoseHeath' + action_class: 'AcquireWinTokenAndLoseHealth' required_bits: [RED, GREEN, BLUE] # This field is ignored, but it's a useful place to put some card definitions diff --git a/naja/actions.py b/naja/actions.py index f5b03a0..ff5bdba 100644 --- a/naja/actions.py +++ b/naja/actions.py @@ -234,6 +234,14 @@ class AcquireWinToken(LocationAction): BITS.RED, BITS.GREEN, BITS.BLUE, ])) +class AcquireWinTokenAndLoseHealth(AcquireWinToken): + TEXT = "Gain {WINTOKEN}, lose {HEALTH}, then clear {RED,GREEN,BLUE}." + GLYPHS = (ACTION_GLYPHS.WINTOKEN, ACTION_GLYPHS.DAMAGE) + + def perform_action(self, board, location): + self.take_damage(board) + super(AcquireWinTokenAndLoseHealth, self).perform_action(board, + location) class GainHealth(LocationAction): TEXT = "Gain {HEALTH}."