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

Function seffect_amnesia

src/read.c:1829–1847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1827}
1828
1829staticfn void
1830seffect_amnesia(struct obj **sobjp)
1831{
1832 struct obj *sobj = *sobjp;
1833 boolean sblessed = sobj->blessed;
1834
1835 gk.known = TRUE;
1836 forget((!sblessed ? ALL_SPELLS : 0));
1837 if (Hallucination) /* Ommmmmm! */
1838 Your("mind releases itself from mundane concerns.");
1839 else if (!strncmpi(svp.plname, "Maud", 4))
1840 pline("As your mind turns inward on itself,"
1841 " you forget everything else.");
1842 else if (rn2(2))
1843 pline("Who was that Maud person anyway?");
1844 else
1845 pline("Thinking of Maud you forget everything else.");
1846 exercise(A_WIS, FALSE);
1847}
1848
1849staticfn void
1850seffect_fire(struct obj **sobjp)

Callers 1

seffectsFunction · 0.85

Calls 6

forgetFunction · 0.85
YourFunction · 0.85
rn2Function · 0.85
exerciseFunction · 0.85
strncmpiFunction · 0.70
plineFunction · 0.70

Tested by

no test coverage detected