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

Function interesting_to_discover

src/o_init.c:525–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525boolean
526interesting_to_discover(int i)
527{
528 /* most players who don't speak Japanese manage to figure out what
529 gunyoki, osaku, and so forth mean, but treat them as pre-discovered
530 to be disclosed by '\' */
531 if (Role_if(PM_SAMURAI) && Japanese_item_name(i, (const char *) 0))
532 return TRUE;
533
534 /* Objects that were discovered without encountering them are now printed
535 with a '*' */
536 return (boolean) (objects[i].oc_uname != (char *) 0
537 || ((objects[i].oc_name_known
538 || objects[i].oc_encountered)
539 && OBJ_DESCR(objects[i]) != (char *) 0));
540}
541
542/* items that should stand out once they're known */
543static const short uniq_objs[] = {

Callers 3

dodiscoveredFunction · 0.85
doclassdiscoFunction · 0.85
rename_discoFunction · 0.85

Calls 1

Japanese_item_nameFunction · 0.85

Tested by

no test coverage detected