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. */
| 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. */ |
| 7160 | void |
| 7161 | ignite_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 | |
| 7174 | void |
| 7175 | trap_ice_effects(coordxy x, coordxy y, boolean ice_is_melting) |
no test coverage detected