]> granicus.if.org Git - nethack/commit
monster ranged attacks (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 28 Dec 2006 02:45:38 +0000 (02:45 +0000)
committernethack.rankin <nethack.rankin>
Thu, 28 Dec 2006 02:45:38 +0000 (02:45 +0000)
commitf411d303ea1c8a464619e15c982fd796b3038044
tree9d051763627e0b1c11965105cccaf864644559a3
parent4b3b8b40473e0e948525eb1933925450df553a04
monster ranged attacks (trunk only)

     Newsgroup posts mention "boulder forts" from time to time, where the
player surrounds the hero with boulders in order to prevent the majority
of monsters from being able to attack.  Since the hero can shoot or throw
or zap over/around/through boulders, monsters ought to be able to do so
too.  This makes the test for whether a monster is lined up properly for
its ranged attacks try harder when the original line-of-sight check fails.
If there aren't any terrain obstacles found, it allows a chance to attack
based on the number of locations in the path that contain any boulders.
Giants and any monster carrying a boulder-destroying wand of striking get
to ignore boulders, overriding the random chance.
doc/fixes35.0
include/extern.h
src/mthrowu.c
src/priest.c