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

Function see_objects

src/display.c:1557–1571  ·  view source on GitHub ↗

* Loop through all of the object *locations* and update them. Called when * + hallucinating. */

Source from the content-addressed store, hash-verified

1555 * + hallucinating.
1556 */
1557void
1558see_objects(void)
1559{
1560 struct obj *obj;
1561
1562 for (obj = fobj; obj; obj = obj->nobj)
1563 if (vobj_at(obj->ox, obj->oy) == obj)
1564 newsym(obj->ox, obj->oy);
1565
1566 /* Qt's "paper doll" subset of persistent inventory shows map tiles
1567 for objects which aren't on the floor so not handled by above loop;
1568 inventory which includes glyphs should also be affected, so do this
1569 for all interfaces in case any feature that for persistent inventory */
1570 update_inventory();
1571}
1572
1573/* mark the top object of nearby stacks as having been seen, and if
1574 that object was being displayed as generic, redisplay it as specific */

Callers 2

allmain.cFile · 0.85
make_hallucinatedFunction · 0.85

Calls 2

newsymFunction · 0.85
update_inventoryFunction · 0.85

Tested by

no test coverage detected