Fire sources can ignite candles, lamps, and potions of oil

... on the floor, in monster inventory, and in hero's inventory.

Items in your inventory being ignited produce a message even if you're
blind - you can see the lit-state by viewing inventory anyway, so just
give player the message.

(via xNetHack)
This commit is contained in:
Pasi Kallinen
2020-09-30 19:43:12 +03:00
parent fb7b578af1
commit 6a35a84c56
12 changed files with 72 additions and 1 deletions

View File

@@ -412,6 +412,9 @@ int expltype;
idamnonres += destroy_mitem(mtmp, WAND_CLASS, (int) adtyp);
idamnonres += destroy_mitem(mtmp, RING_CLASS, (int) adtyp);
if (adtyp == AD_FIRE)
ignite_items(mtmp->minvent);
if (explmask[i][j] == 1) {
golemeffects(mtmp, (int) adtyp, dam + idamres);
mtmp->mhp -= idamnonres;
@@ -500,8 +503,10 @@ int expltype;
You("are unharmed!");
} else if (adtyp == AD_PHYS || physical_dmg)
damu = Maybe_Half_Phys(damu);
if (adtyp == AD_FIRE)
if (adtyp == AD_FIRE) {
(void) burnarmor(&g.youmonst);
ignite_items(g.invent);
}
destroy_item(SCROLL_CLASS, (int) adtyp);
destroy_item(SPBOOK_CLASS, (int) adtyp);
destroy_item(POTION_CLASS, (int) adtyp);