diff skaapsteker/sprites/base.py @ 434:827c5d045cf5

Don't allow the cannon to be picked up
author Neil Muller <drnlmuller@gmail.com>
date Sat, 09 Apr 2011 19:14:19 +0200
parents 8ac5b3d619fe
children f3ccb00df6a4
line wrap: on
line diff
--- a/skaapsteker/sprites/base.py	Sat Apr 09 19:00:43 2011 +0200
+++ b/skaapsteker/sprites/base.py	Sat Apr 09 19:14:19 2011 +0200
@@ -329,6 +329,7 @@
     mobile = False
     gravitates = False
     actionable = True
+    liftable = True
 
     collision_layer = NPC_LAYER
 
@@ -346,7 +347,8 @@
 
 
     def player_action(self, player):
-        player.take_item(self)
+        if self.liftable:
+            player.take_item(self)
 
 
     def remove(self):