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

Function learnscrolltyp

src/read.c:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55staticfn boolean create_particular_creation(struct _create_particular_data *);
56
57staticfn boolean
58learnscrolltyp(short scrolltyp)
59{
60 if (!objects[scrolltyp].oc_name_known) {
61 makeknown(scrolltyp);
62 more_experienced(0, 10);
63 return TRUE;
64 } else
65 return FALSE;
66}
67
68/* also called from teleport.c for scroll of teleportation */
69void

Callers 4

learnscrollFunction · 0.85
seffect_remove_curseFunction · 0.85
seffect_fireFunction · 0.85
seffect_identifyFunction · 0.85

Calls 1

more_experiencedFunction · 0.85

Tested by

no test coverage detected