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:
@@ -1115,6 +1115,8 @@ register struct attack *mattk;
|
||||
destroy_item(POTION_CLASS, AD_FIRE);
|
||||
if ((int) mtmp->m_lev > rn2(25))
|
||||
destroy_item(SPBOOK_CLASS, AD_FIRE);
|
||||
if ((int) mtmp->m_lev > rn2(20))
|
||||
ignite_items(g.invent);
|
||||
burn_away_slime();
|
||||
} else
|
||||
dmg = 0;
|
||||
@@ -2362,6 +2364,8 @@ struct attack *mattk;
|
||||
destroy_item(POTION_CLASS, AD_FIRE);
|
||||
if (lev > rn2(25))
|
||||
destroy_item(SPBOOK_CLASS, AD_FIRE);
|
||||
if (lev > rn2(20))
|
||||
ignite_items(g.invent);
|
||||
if (dmg)
|
||||
mdamageu(mtmp, dmg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user