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

Function learnscroll

src/read.c:69–76  ·  view source on GitHub ↗

also called from teleport.c for scroll of teleportation */

Source from the content-addressed store, hash-verified

67
68/* also called from teleport.c for scroll of teleportation */
69void
70learnscroll(struct obj *sobj)
71{
72 /* it's implied that sobj->dknown is set;
73 we couldn't be reading this scroll otherwise */
74 if (sobj->oclass != SPBOOK_CLASS)
75 (void) learnscrolltyp(sobj->otyp);
76}
77
78/* max spe is +99, min is -99 */
79staticfn void

Callers 3

scrollteleFunction · 0.85
doreadFunction · 0.85
seffect_chargingFunction · 0.85

Calls 1

learnscrolltypFunction · 0.85

Tested by

no test coverage detected