]> granicus.if.org Git - nethack/commit
eel hiding behavior (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 21 Feb 2008 05:52:08 +0000 (05:52 +0000)
committernethack.rankin <nethack.rankin>
Thu, 21 Feb 2008 05:52:08 +0000 (05:52 +0000)
commite8624a3285ffb6e4a44634a0d9451d8f585d3f1d
tree5650b8d31aeaf07a7ac555c0d20cad9574360572
parenta17ea1b3acb6085d3bfb19f71b3b991dea5da301
eel hiding behavior (trunk only)

     From a bug report:  an exposed eel in an isolated
pool--swamp rooms sometimes produce those--would never re-hide no matter
how long you left its vicinity.  Re-hiding is part of post-move handling
and an eel with no adjacent water to move into would never reach that bit
of code since it didn't move anywhere.  The code used to re-hide monsters
when you return to a previous level was ignoring eels altogether.  Give
unhidden eels a chance to hide earlier during monster movement and also
when the hero returns to their level.

     Also a really minor bit to slow down hit point loss of eels out of
water.  I don't think anybody reverse genocides krakens to get experience
any more since they don't provide a big bonus when they're out of water,
so this change won't have much of an affect.
doc/fixes35.0
src/mon.c