From: Christian Heller Date: Thu, 3 Dec 2020 05:48:11 +0000 (+0100) Subject: Greatly reduce FOV on drunkenness. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/static/process?a=commitdiff_plain;h=8b3739449048aac3d7532563d0c20cb198d37a8f;p=plomrogue2 Greatly reduce FOV on drunkenness. --- diff --git a/plomrogue/things.py b/plomrogue/things.py index 1c99737..a5d3889 100644 --- a/plomrogue/things.py +++ b/plomrogue/things.py @@ -334,8 +334,9 @@ class ThingAnimate(Thing): if self._fov: return self._fov fov_map_class = self.game.map_geometry.fov_map_class + fov_radius = 3 if self.drunk > 0 else 12 self._fov = fov_map_class(self.game.things, self.game.maps, self.position, - 12, self.game.get_map) + fov_radius, self.game.get_map) return self._fov def fov_test(self, big_yx, little_yx):