splattered oil fix

splatter_burning_oil() is called when a lit potion of oil gets
broken, and it can dish out fatal damage to the hero.  An earlier fix
to prevent a light-source panic (thrown item is not on any of the object
lists) during bones creation didn't address leaving that lit potion
intact if it was on the floor (which can happen if the breakage is caused
by striking or force bolt rather than its being thrown or kicked).  Use
the existing obj->in_use mechanism as a more general fix, after teaching
bones code that it applies to other things besides the hero's inventory.
This commit is contained in:
nethack.rankin
2007-05-11 02:25:55 +00:00
parent 46a8bf78a3
commit b805ba7bc3
4 changed files with 19 additions and 11 deletions

View File

@@ -257,8 +257,10 @@ honor the never-in-hell flag when selecting random monster type for corpses,
eggs, figurines, and statues created in Gehennom
hero is not subject to light-based blindness while fainted from hunger
engraving while underwater should use surface() which handles that case
prevent obj_is_local panic during bones creation when splatter_burning_oil()
prevent obj_is_local panic during bones creation when splattered burning oil
from a thrown potion of oil kills the hero
don't leave lit potion intact when splattered burning oil from broken floor
potion kills the hero
fix region timeout detection, caused strange display of stinking cloud
while wearing the Eyes of the Overworld
try to keep migrating monsters from escaping the wizard tower