home · contact · privacy
Ignore success messages, properly quote messages.
[plomrogue2-experiments] / client.py
index 80cac96aab380849a29c4e54edb6cb5c5bc86579..dd40323fca7038e45f8684bd1f34bd086e96523d 100755 (executable)
--- a/client.py
+++ b/client.py
@@ -23,6 +23,11 @@ class Game(Commander):
             symbol = 'm'
         return symbol
 
+    def cmd_LAST_PLAYER_TASK_RESULT(self, msg):
+        if msg != "success":
+            self.log_text = msg + '\n' + self.log_text
+    cmd_LAST_PLAYER_TASK_RESULT.argtypes = 'string'
+
     def cmd_TURN_FINISHED(self, n):
         """Do nothing. (This may be extended later.)"""
         pass