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

Function peffect_extra_healing

src/potion.c:1127–1141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1125}
1126
1127staticfn void
1128peffect_extra_healing(struct obj *otmp)
1129{
1130 You_feel("much better.");
1131 healup(16 + d(4 + 2 * bcsign(otmp), 8),
1132 otmp->blessed ? 5 : !otmp->cursed ? 2 : 0, !otmp->cursed,
1133 TRUE);
1134 (void) make_hallucinated(0L, TRUE, 0L);
1135 exercise(A_CON, TRUE);
1136 exercise(A_STR, TRUE);
1137 /* blessed potion also heals wounded legs unless riding (where leg
1138 wounds apply to the steed rather than to the hero) */
1139 if (Wounded_legs && (otmp->blessed && !u.usteed))
1140 heal_legs(0);
1141}
1142
1143staticfn void
1144peffect_full_healing(struct obj *otmp)

Callers 1

peffectsFunction · 0.85

Calls 7

You_feelFunction · 0.85
healupFunction · 0.85
dFunction · 0.85
bcsignFunction · 0.85
make_hallucinatedFunction · 0.85
exerciseFunction · 0.85
heal_legsFunction · 0.85

Tested by

no test coverage detected