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

Function ignite_items

src/trap.c:7160–7172  ·  view source on GitHub ↗

Ignite ignitable items (limited to light sources) in the given object chain, due to some external source of fire. The object chain should be somewhere exposed, like someone's open inventory or the floor. */

Source from the content-addressed store, hash-verified

7158 chain, due to some external source of fire. The object chain should
7159 be somewhere exposed, like someone's open inventory or the floor. */
7160void
7161ignite_items(struct obj *objchn)
7162{
7163 struct obj *obj, *nextobj;
7164 boolean bynexthere = (objchn && objchn->where == OBJ_FLOOR);
7165
7166 for (obj = objchn; obj; obj = bynexthere ? obj->nexthere : nextobj) {
7167 nextobj = obj->nobj;
7168 /* ignitable items like lamps and candles will catch fire */
7169 if (!obj->lamplit && !obj->in_use)
7170 catch_lit(obj);
7171 }
7172}
7173
7174void
7175trap_ice_effects(coordxy x, coordxy y, boolean ice_is_melting)

Callers 14

mhitm_ad_fireFunction · 0.85
mcast_fire_pillarFunction · 0.85
artifact_hitFunction · 0.85
dogazeFunction · 0.85
trapeffect_fire_trapFunction · 0.85
dofiretrapFunction · 0.85
lava_effectsFunction · 0.85
zapyourselfFunction · 0.85
zhitmFunction · 0.85
zhituFunction · 0.85
burn_floor_objectsFunction · 0.85
use_offensiveFunction · 0.85

Calls 1

catch_litFunction · 0.85

Tested by

no test coverage detected