From 4e9c82b88ace9e6b817e89337041194fca51811a Mon Sep 17 00:00:00 2001 From: David Sharpe Date: Sat, 17 May 2014 22:11:57 +0200 Subject: [PATCH] Mor deth wit speling --- data/location_decks/standard.yaml | 2 +- naja/actions.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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}." -- 2.34.1