Reduce the number of gnomes with candles

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.
This commit is contained in:
Pasi Kallinen
2015-06-01 15:59:43 +03:00
parent be4c2b2fd6
commit 13ef4962fd
+1 -1
View File
@@ -697,7 +697,7 @@ register struct monst *mtmp;
} }
break; break;
case S_GNOME: 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 = mksobj(rn2(4) ? TALLOW_CANDLE : WAX_CANDLE, TRUE, FALSE);
otmp->quan = 1; otmp->quan = 1;
otmp->owt = weight(otmp); otmp->owt = weight(otmp);