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

Function g_at

src/invent.c:1612–1623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1610}
1611
1612struct obj *
1613g_at(coordxy x, coordxy y)
1614{
1615 struct obj *obj = svl.level.objects[x][y];
1616
1617 while (obj) {
1618 if (obj->oclass == COIN_CLASS)
1619 return obj;
1620 obj = obj->nexthere;
1621 }
1622 return (struct obj *) 0;
1623}
1624
1625/* compact a string of inventory letters by dashing runs of letters */
1626staticfn void

Callers 10

stealgoldFunction · 0.85
dosoundsFunction · 0.85
reverse_lootFunction · 0.85
wallify_vaultFunction · 0.85
gd_pick_corridor_goldFunction · 0.85
gd_moveFunction · 0.85
floorfoodFunction · 0.85
mpickgoldFunction · 0.85
mkgoldFunction · 0.85
leppie_stashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected