home · contact · privacy
Greatly reduce FOV on drunkenness.
[plomrogue2] / plomrogue / things.py
index 30cd2bfe104fdd2a36836b87a401f6d33cc555f2..a5d38897205282e51fb29ba23333c72fded7b02a 100644 (file)
@@ -145,6 +145,11 @@ class Thing_Bottle(Thing):
     symbol_hint = 'B'
     portable = True
     full = True
+    thing_char = '~'
+
+    def empty(self):
+        self.thing_char = '_'
+        self.full = False
 
 
 
@@ -329,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):