]> granicus.if.org Git - nethack/commit
fix #H184 - rndmonnum plan B
authornethack.rankin <nethack.rankin>
Thu, 24 Aug 2006 04:50:45 +0000 (04:50 +0000)
committernethack.rankin <nethack.rankin>
Thu, 24 Aug 2006 04:50:45 +0000 (04:50 +0000)
commit422bfa686e5d217e8fb4e08df0c45e9154dbebd3
tree4367204301cc53caa83bd0512f6d1f3db88871f7
parentd78f81a7f3a0aa111cde75e393add7d130937f57
fix #H184 - rndmonnum plan B

     From a bug report, the fallback selection criteria
(used when everything is extinct?) in rndmonnum() was excluding hell-only
monsters when outside of Gehennom, but failed to exclude never-in-hell ones
when inside.  [Some of the never-in-hell monsters are Angels, but the rest
are all cold based creatures.  That must date to when fire resistance was
required for the hero, which is no longer the case.  Should those cold
monsters retain their never-in-hell setting?]

     This also fixes a latent copy/paste bug in the unused mons[] definition
of Cerberus (it was the only unique monster which failed to specify G_NOGEN).
doc/fixes34.4
src/mkobj.c
src/monst.c