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

Function peffect_paralysis

src/potion.c:880–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878}
879
880staticfn void
881peffect_paralysis(struct obj *otmp)
882{
883 if (Free_action) {
884 You("stiffen momentarily.");
885 } else {
886 if (Levitation || Is_airlevel(&u.uz) || Is_waterlevel(&u.uz))
887 You("are motionlessly suspended.");
888 else if (u.usteed)
889 You("are frozen in place!");
890 else
891 Your("%s are frozen to the %s!", makeplural(body_part(FOOT)),
892 surface(u.ux, u.uy));
893 nomul(-(rn1(10, 25 - 12 * bcsign(otmp))));
894 gm.multi_reason = "frozen by a potion";
895 gn.nomovemsg = You_can_move_again;
896 exercise(A_DEX, FALSE);
897 }
898}
899
900staticfn void
901peffect_sleeping(struct obj *otmp)

Callers 1

peffectsFunction · 0.85

Calls 8

YouFunction · 0.85
YourFunction · 0.85
makepluralFunction · 0.85
body_partFunction · 0.85
surfaceFunction · 0.85
nomulFunction · 0.85
bcsignFunction · 0.85
exerciseFunction · 0.85

Tested by

no test coverage detected