]> granicus.if.org Git - nethack/commit
web spinning
authorPatR <rankin@nethack.org>
Sat, 8 Sep 2018 01:12:03 +0000 (18:12 -0700)
committerPatR <rankin@nethack.org>
Sat, 8 Sep 2018 01:12:03 +0000 (18:12 -0700)
commitb572ccb0147bdc192d6bccc20d7a3df9ace8c1cc
tree067d74c4cec7ddbe791f29b44c0f0c75907d886c
parent2122506ebe9341b676123683b31effb549fd8299
web spinning

This started as some formatting cleanup but I've added a couple of
additional terrain features which can act as web support (stairs up
and ladder up).

The message "<Spider> spins a web" was given if you could detect or
sense <spider> rather than see it.  I've changed that to only happen
if you see the new web appear rather than the critter spinning it
(it only becomes an unseen trap if you don't watch it appear).

After spinning a web, a spider can't spin another one until 4d4 moves
have elapsed.  That seems suitable when the spider can be seen but
isn't really adequate throttling when the spider is far away--it can
end up spinning a lot of webs by the time you get to its vicinity.
Perhaps it shouldn't be able to spin a new web if there is already
one with N steps of its location?
src/monmove.c