]> granicus.if.org Git - nethack/commit
randomized trap names
authorPatR <rankin@nethack.org>
Fri, 10 Jan 2020 02:45:06 +0000 (18:45 -0800)
committerPatR <rankin@nethack.org>
Fri, 10 Jan 2020 02:45:06 +0000 (18:45 -0800)
commitf6c547f3763afc559ba78e9296ce0b0b9a91c014
tree7676e09aeb9039f90ac33e5ed29ab0fab1c13185
parent3ed51c2718ee8aef407af4d4aaa604c064c40af0
randomized trap names

Use trapname() in several more places.  I wasn't systematic about it.

trapname() could generate a random value of 0 and attempt to use
"real trap #0" but 0 is NO_TRAP.  So it ended up with "water" from
the preceding block of entries in defsyms[].  Treat 0 as an extra
chance for the actual trap instead of an hallucinatory one.

Add a couple more hallucinatory traps.  "Roach Motel" is trademarked
but like Spam and Band-Aid, general usage has trampled over it.  I
included "(tm)" anyway.  Also, sometimes generate "<role> trap" or
"<rank> trap" on the fly.  Why should tourists get all the fun?
doc/fixes37.0
src/trap.c