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

Function remove_object

src/mkobj.c:2507–2521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2505#undef ROT_ICE_ADJUSTMENT
2506
2507void
2508remove_object(struct obj *otmp)
2509{
2510 coordxy x = otmp->ox;
2511 coordxy y = otmp->oy;
2512
2513 if (otmp->where != OBJ_FLOOR)
2514 panic("remove_object: obj where=%d, not on floor", otmp->where);
2515 extract_nexthere(otmp, &svl.level.objects[x][y]);
2516 extract_nobj(otmp, &fobj);
2517 if (otmp->otyp == BOULDER)
2518 recalc_block_point(x, y); /* vision */
2519 if (otmp->timed)
2520 obj_timer_checks(otmp, x, y, 0);
2521}
2522
2523/* throw away all of a monster's inventory */
2524void

Callers 11

show_transient_lightFunction · 0.85
set_bcFunction · 0.85
move_bcFunction · 0.85
moverock_coreFunction · 0.85
movobjFunction · 0.85
move_goldFunction · 0.85
recreate_pile_atFunction · 0.85
obj_extract_selfFunction · 0.85
movebubblesFunction · 0.85
litter_scatterFunction · 0.85
create_objectFunction · 0.85

Calls 5

extract_nexthereFunction · 0.85
extract_nobjFunction · 0.85
recalc_block_pointFunction · 0.85
obj_timer_checksFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected