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

Function o_on

src/invent.c:1586–1599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1584}
1585
1586struct obj *
1587o_on(unsigned int id, struct obj *objchn)
1588{
1589 struct obj *temp;
1590
1591 while (objchn) {
1592 if (objchn->o_id == id)
1593 return objchn;
1594 if (Has_contents(objchn) && (temp = o_on(id, objchn->cobj)))
1595 return temp;
1596 objchn = objchn->nobj;
1597 }
1598 return (struct obj *) 0;
1599}
1600
1601boolean
1602obj_here(struct obj *obj, coordxy x, coordxy y)

Callers 2

bp_to_objFunction · 0.85
find_oidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected