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

Function add_to_buried

src/mkobj.c:2719–2728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2717}
2718
2719void
2720add_to_buried(struct obj *obj)
2721{
2722 if (obj->where != OBJ_FREE)
2723 panic("add_to_buried: obj where=%d, not free", obj->where);
2724
2725 obj->where = OBJ_BURIED;
2726 obj->nobj = svl.level.buriedobjlist;
2727 svl.level.buriedobjlist = obj;
2728}
2729
2730/* recalculate weight of object, which doesn't have to be a container
2731 itself; if it is contained, recursively handle _its_ container(s) */

Callers 4

dosinkringFunction · 0.85
bury_an_objFunction · 0.85
mineralizeFunction · 0.85
mkgraveFunction · 0.85

Calls 1

panicFunction · 0.50

Tested by

no test coverage detected