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

Function trycall

src/do.c:394–399  ·  view source on GitHub ↗

If obj is neither formally identified nor informally called something * already, prompt the player to call its object type. */

Source from the content-addressed store, hash-verified

392/* If obj is neither formally identified nor informally called something
393 * already, prompt the player to call its object type. */
394void
395trycall(struct obj *obj)
396{
397 if (!objects[obj->otyp].oc_name_known && !objects[obj->otyp].oc_uname)
398 docall(obj);
399}
400
401/* Transforms the sink at the player's position into
402 a fountain, throne, altar or grave. */

Callers 15

dopotionFunction · 0.85
strange_feelingFunction · 0.85
potionhitFunction · 0.85
potionbreatheFunction · 0.85
poofFunction · 0.85
potion_dipFunction · 0.85
Amulet_onFunction · 0.85
dosinkringFunction · 0.85
pickup_objectFunction · 0.85
doeatFunction · 0.85
confused_bookFunction · 0.85
study_bookFunction · 0.85

Calls 1

docallFunction · 0.85

Tested by

no test coverage detected