From: Christian Heller Date: Mon, 14 Dec 2020 21:03:19 +0000 (+0100) Subject: Turn players into non-light-blockers. X-Git-Url: https://plomlompom.com/repos/te"st.html?a=commitdiff_plain;h=cd0fee3d91d70525d7d4f434985abad6ea73faf0;p=plomrogue2 Turn players into non-light-blockers. --- diff --git a/plomrogue/tasks.py b/plomrogue/tasks.py index 1dec10d..98609da 100644 --- a/plomrogue/tasks.py +++ b/plomrogue/tasks.py @@ -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.invalidate('fov') if self.thing.blocks_light: self.thing.game.record_change(self.thing.position, 'fov') if self.thing.carrying: diff --git a/plomrogue/things.py b/plomrogue/things.py index 021412a..0dced0d 100644 --- a/plomrogue/things.py +++ b/plomrogue/things.py @@ -410,7 +410,6 @@ class Thing_CookieSpawner(Thing): class ThingAnimate(Thing): blocks_movement = True - blocks_light = True drunk = 0 def __init__(self, *args, **kwargs):