home
·
contact
·
privacy
projects
/
plomrogue2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Greatly reduce FOV on drunkenness.
[plomrogue2]
/
plomrogue
/
things.py
diff --git
a/plomrogue/things.py
b/plomrogue/things.py
index 1c99737c039390938804d467d8e9a490e2dc2a67..a5d38897205282e51fb29ba23333c72fded7b02a 100644
(file)
--- 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
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,
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):
return self._fov
def fov_test(self, big_yx, little_yx):