Let the Hero specify its own sight radius
This commit is contained in:
parent
77fc9467bc
commit
e6c4717e80
2 changed files with 2 additions and 2 deletions
|
@ -220,7 +220,7 @@ class Engine:
|
|||
self.map.visible[:] = tcod.map.compute_fov(
|
||||
self.map.tiles['transparent'],
|
||||
tuple(self.hero.position),
|
||||
radius=30)
|
||||
radius=self.hero.sight_radius)
|
||||
|
||||
# Add visible tiles to the explored grid
|
||||
self.map.explored |= self.map.visible
|
||||
|
|
|
@ -155,7 +155,7 @@ class Hero(Actor):
|
|||
@property
|
||||
def sight_radius(self) -> int:
|
||||
# TODO: Make this configurable
|
||||
return 8
|
||||
return 0
|
||||
|
||||
def __str__(self) -> str:
|
||||
assert self.fighter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue