home · contact · privacy
Add "item" thing type differentiated from animate thing types.
[plomrogue2-experiments] / new / plomrogue / tasks.py
index a2c041b06aeb0807ab095f3f07f914ea705e26f2..262576273f4726301777fe0297f7e0b441d4c0a8 100644 (file)
@@ -11,12 +11,6 @@ class Task:
         self.args = args
         self.todo = 3
 
-    @property
-    def name(self):
-        prefix = 'Task_'
-        class_name = self.__class__.__name__
-        return class_name[len(prefix):]
-
     def check(self):
         pass
 
@@ -46,7 +40,7 @@ class Task_MOVE(Task):
         if self.thing.world.map_[test_pos] != '.':
             raise GameError('%s would move into illegal terrain' % self.thing.id_)
         for t in self.thing.world.things:
-            if t.position == test_pos:
+            if t.blocking and t.position == test_pos:
                 raise GameError('%s would move into other thing' % self.thing.id_)
 
     def do(self):