Poly into fire elemental, eat flammable items
This commit is contained in:
@@ -1088,6 +1088,7 @@ fix freeing a worn object when forced to drop it by falling down stairs
|
|||||||
allow setting per-level "temperature": hot, cold, or temperate, currently
|
allow setting per-level "temperature": hot, cold, or temperate, currently
|
||||||
only affects some messages
|
only affects some messages
|
||||||
digging is noisy
|
digging is noisy
|
||||||
|
polymorphing into fire elemental allows you eat flammable items
|
||||||
|
|
||||||
|
|
||||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||||
|
|||||||
@@ -96,6 +96,10 @@ is_edible(register struct obj *obj)
|
|||||||
/* above also prevents the Amulet from being eaten, so we must never
|
/* above also prevents the Amulet from being eaten, so we must never
|
||||||
allow fake amulets to be eaten either [which is already the case] */
|
allow fake amulets to be eaten either [which is already the case] */
|
||||||
|
|
||||||
|
if (gy.youmonst.data == &mons[PM_FIRE_ELEMENTAL]
|
||||||
|
&& is_flammable(obj))
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
if (metallivorous(gy.youmonst.data) && is_metallic(obj)
|
if (metallivorous(gy.youmonst.data) && is_metallic(obj)
|
||||||
&& (gy.youmonst.data != &mons[PM_RUST_MONSTER] || is_rustprone(obj)))
|
&& (gy.youmonst.data != &mons[PM_RUST_MONSTER] || is_rustprone(obj)))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@@ -520,7 +524,10 @@ done_eating(boolean message)
|
|||||||
pline1(gn.nomovemsg);
|
pline1(gn.nomovemsg);
|
||||||
gn.nomovemsg = 0;
|
gn.nomovemsg = 0;
|
||||||
} else if (message)
|
} else if (message)
|
||||||
You("finish eating %s.", food_xname(piece, TRUE));
|
You("finish %s %s.",
|
||||||
|
(gy.youmonst.data == &mons[PM_FIRE_ELEMENTAL])
|
||||||
|
? "consuming" : "eating",
|
||||||
|
food_xname(piece, TRUE));
|
||||||
|
|
||||||
if (piece->otyp == CORPSE || piece->globby)
|
if (piece->otyp == CORPSE || piece->globby)
|
||||||
cpostfx(piece->corpsenm);
|
cpostfx(piece->corpsenm);
|
||||||
|
|||||||
Reference in New Issue
Block a user