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

Function peffect_confusion

src/potion.c:1013–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011}
1012
1013staticfn void
1014peffect_confusion(struct obj *otmp)
1015{
1016 if (!Confusion) {
1017 if (Hallucination) {
1018 pline("What a trippy feeling!");
1019 gp.potion_unkn++;
1020 } else
1021 pline("Huh, What? Where am I?");
1022 } else
1023 gp.potion_nothing++;
1024 make_confused(itimeout_incr(HConfusion,
1025 rn1(7, 16 - 8 * bcsign(otmp))),
1026 FALSE);
1027}
1028
1029staticfn void
1030peffect_gain_ability(struct obj *otmp)

Callers 1

peffectsFunction · 0.85

Calls 4

make_confusedFunction · 0.85
itimeout_incrFunction · 0.85
bcsignFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected