Give gnomes occasionally a candle

...and if in unlit area, light the candle.
This commit is contained in:
Pasi Kallinen
2015-04-23 21:19:19 +03:00
parent 23ad7a8635
commit ea6157c475
2 changed files with 10 additions and 0 deletions

View File

@@ -1125,6 +1125,7 @@ tribute to Terry Pratchett
Some levels in Gehennom now use the old corridor-style maze instead of
the new room-style. Beelzebub's level always does this and the
"beetle legs" are restored.
gnomes will occasionally have a candle
Platform- and/or Interface-Specific New Features

View File

@@ -619,6 +619,15 @@ register struct monst *mtmp;
(void)mongets(mtmp, WAN_FIRE);
}
break;
case S_GNOME:
if (!rn2((In_mines(&u.uz) ? 5 : 10))) {
otmp = mksobj(rn2(4) ? TALLOW_CANDLE : WAX_CANDLE, TRUE, FALSE);
otmp->quan = 1;
otmp->owt = weight(otmp);
if (!mpickobj(mtmp, otmp) && !levl[mtmp->mx][mtmp->my].lit)
begin_burn(otmp, FALSE);
}
break;
default:
break;
}