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

Function obj_is_burning

src/light.c:770–775  ·  view source on GitHub ↗

Return TRUE if sheds light AND will be snuffed by end_burn(). */

Source from the content-addressed store, hash-verified

768
769/* Return TRUE if sheds light AND will be snuffed by end_burn(). */
770boolean
771obj_is_burning(struct obj *obj)
772{
773 return (boolean) (obj->lamplit && (ignitable(obj)
774 || artifact_light(obj)));
775}
776
777/* copy the light source(s) attached to src, and attach it/them to dest */
778void

Callers 4

drop_upon_deathFunction · 0.85
snuff_light_sourceFunction · 0.85
obj_sheds_lightFunction · 0.85
in_containerFunction · 0.85

Calls 1

artifact_lightFunction · 0.85

Tested by

no test coverage detected