home · contact · privacy
Turn players into non-light-blockers.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 21:03:19 +0000 (22:03 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 21:03:19 +0000 (22:03 +0100)
plomrogue/tasks.py
plomrogue/things.py

index 1dec10d7e8b1a639474ba8e07d6e371cf1963185..98609da7232b2bb3ead257f1585f972e59ceee1b 100644 (file)
@@ -47,6 +47,7 @@ class Task_MOVE(Task):
             self.thing.game.record_change(self.thing.position, 'fov')
         self.thing.position = self._get_move_target()
         self.thing.game.record_change(self.thing.position, 'other')
             self.thing.game.record_change(self.thing.position, 'fov')
         self.thing.position = self._get_move_target()
         self.thing.game.record_change(self.thing.position, 'other')
+        self.thing.invalidate('fov')
         if self.thing.blocks_light:
             self.thing.game.record_change(self.thing.position, 'fov')
         if self.thing.carrying:
         if self.thing.blocks_light:
             self.thing.game.record_change(self.thing.position, 'fov')
         if self.thing.carrying:
index 021412a1e61bc8f8467c751d40a394bb2245aac6..0dced0da0a612b1c10248c3ba8f9eef52e057a72 100644 (file)
@@ -410,7 +410,6 @@ class Thing_CookieSpawner(Thing):
 
 class ThingAnimate(Thing):
     blocks_movement = True
 
 class ThingAnimate(Thing):
     blocks_movement = True
-    blocks_light = True
     drunk = 0
 
     def __init__(self, *args, **kwargs):
     drunk = 0
 
     def __init__(self, *args, **kwargs):