home
·
contact
·
privacy
projects
/
plomrogue2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d23e0ca
)
Greatly reduce FOV on drunkenness.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 3 Dec 2020 05:48:11 +0000
(06:48 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 3 Dec 2020 05:48:11 +0000
(06:48 +0100)
plomrogue/things.py
patch
|
blob
|
history
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
+ 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):