diff gamelib/scenes/cryo.py @ 519:8f3c82c685a4

Fix is_interactive() by adding tool param.
author Jeremy Thurgood <firxen@gmail.com>
date Tue, 07 Sep 2010 18:13:35 +0200
parents 3e91c82c2240
children 821b322e903b
line wrap: on
line diff
--- a/gamelib/scenes/cryo.py	Tue Sep 07 17:05:51 2010 +0200
+++ b/gamelib/scenes/cryo.py	Tue Sep 07 18:13:35 2010 +0200
@@ -174,7 +174,7 @@
                     ) % PLAYER_ID, self.state))
             return responses
 
-    def is_interactive(self):
+    def is_interactive(self, tool=None):
         return self.get_data('fixed')
 
     def interact_without(self):
@@ -205,7 +205,7 @@
         return Result("These pipes carry fluid to the working cryo units."
                 " Chopping them down doesn't seem sensible.")
 
-    def is_interactive(self):
+    def is_interactive(self, tool=None):
         return True
 
     def interact_without(self):
@@ -300,7 +300,7 @@
         super(GenericCryoUnit, self).__init__('cryo.unit', number, description, areas)
         self.detailed_description = detailed_description
 
-    def is_interactive(self):
+    def is_interactive(self, tool=None):
         return True
 
     def interact_without(self):