From bd20e189a992894f8c20226b127fdec426de6425 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sat, 17 May 2014 19:42:36 +0200 Subject: [PATCH] Overrideable messages --- naja/actions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/naja/actions.py b/naja/actions.py index c0f19c6..c96a219 100644 --- a/naja/actions.py +++ b/naja/actions.py @@ -46,7 +46,11 @@ class LocationAction(object): substitutions['location_bits'] = bit_glyphs( location.bitwise_operand) - return self.TEXT % substitutions + text = self.TEXT + if self.data.get('message', None) is not None: + text = self.data['message'] + + return text % substitutions def check_available(self, player): return player.bits.check_bits(self.required_bits) -- 2.34.1