MCPcopy Index your code
hub / github.com/NetHack/NetHack / explode_oil

Function explode_oil

src/explode.c:973–983  ·  view source on GitHub ↗

lit potion of oil is exploding; extinguish it as a light source before possibly killing the hero and attempting to save bones */

Source from the content-addressed store, hash-verified

971/* lit potion of oil is exploding; extinguish it as a light source before
972 possibly killing the hero and attempting to save bones */
973void
974explode_oil(struct obj *obj, coordxy x, coordxy y)
975{
976 boolean diluted_oil = obj->odiluted;
977
978 if (!obj->lamplit)
979 impossible("exploding unlit oil");
980 end_burn(obj, TRUE);
981 obj->how_lost = LOST_EXPLODING;
982 splatter_burning_oil(x, y, diluted_oil);
983}
984
985/* Convert a damage type into an explosion display type. */
986int

Callers 2

potionhitFunction · 0.85
breakobjFunction · 0.85

Calls 3

end_burnFunction · 0.85
splatter_burning_oilFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected