MCPcopy Create free account
hub / github.com/NetHack/NetHack / obj_ice_effects

Function obj_ice_effects

src/mkobj.c:2396–2413  ·  view source on GitHub ↗

If ice was affecting any objects correct that now * Also used for starting ice effects too. [zap.c] */

Source from the content-addressed store, hash-verified

2394 * Also used for starting ice effects too. [zap.c]
2395 */
2396void
2397obj_ice_effects(coordxy x, coordxy y, boolean do_buried)
2398{
2399 struct obj *otmp;
2400
2401 for (otmp = svl.level.objects[x][y]; otmp; otmp = otmp->nexthere) {
2402 if (otmp->timed)
2403 obj_timer_checks(otmp, x, y, 0);
2404 }
2405 if (do_buried) {
2406 for (otmp = svl.level.buriedobjlist; otmp; otmp = otmp->nobj) {
2407 if (otmp->ox == x && otmp->oy == y) {
2408 if (otmp->timed)
2409 obj_timer_checks(otmp, x, y, 0);
2410 }
2411 }
2412 }
2413}
2414
2415/*
2416 * Returns an obj->age for a corpse object on ice, that would be the

Callers 6

spot_checksFunction · 0.85
liquid_flowFunction · 0.85
maketrapFunction · 0.85
melt_iceFunction · 0.85
zap_over_floorFunction · 0.85
set_levltypFunction · 0.85

Calls 1

obj_timer_checksFunction · 0.85

Tested by

no test coverage detected