]> granicus.if.org Git - nethack/commitdiff
Reduce the number of gnomes with candles
authorPasi Kallinen <paxed@alt.org>
Mon, 1 Jun 2015 12:56:23 +0000 (15:56 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 1 Jun 2015 12:59:43 +0000 (15:59 +0300)
Gnomes in mines during level generation have 1/20 chance of getting a candle
(should give approximately 4 candles in all of the mines total), and every
randomly generated gnome has 1/60 chance.

src/makemon.c

index ea0ca262c40a5e05217e171477501d48a420ffdb..242675340c3b946601a1da2c351520c2bb1b2955 100644 (file)
@@ -697,7 +697,7 @@ register struct monst *mtmp;
         }
         break;
     case S_GNOME:
-        if (!rn2((In_mines(&u.uz) ? 5 : 10))) {
+        if (!rn2((In_mines(&u.uz) && in_mklev) ? 20 : 60)) {
             otmp = mksobj(rn2(4) ? TALLOW_CANDLE : WAX_CANDLE, TRUE, FALSE);
             otmp->quan = 1;
             otmp->owt = weight(otmp);