home · contact · privacy
Greatly reduce FOV on drunkenness.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 3 Dec 2020 05:48:11 +0000 (06:48 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 3 Dec 2020 05:48:11 +0000 (06:48 +0100)
plomrogue/things.py

index 1c99737c039390938804d467d8e9a490e2dc2a67..a5d38897205282e51fb29ba23333c72fded7b02a 100644 (file)
@@ -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):