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

Function speed_up

src/potion.c:2918–2928  ·  view source on GitHub ↗

Character becomes very fast temporarily. */

Source from the content-addressed store, hash-verified

2916
2917/* Character becomes very fast temporarily. */
2918void
2919speed_up(long duration)
2920{
2921 if (!Very_fast)
2922 You("are suddenly moving %sfaster.", Fast ? "" : "much ");
2923 else
2924 Your("%s get new energy.", makeplural(body_part(LEG)));
2925
2926 exercise(A_DEX, TRUE);
2927 incr_itimeout(&HFast, duration);
2928}
2929
2930/*potion.c*/

Callers 2

peffect_speedFunction · 0.85
zapyourselfFunction · 0.85

Calls 6

YouFunction · 0.85
YourFunction · 0.85
makepluralFunction · 0.85
body_partFunction · 0.85
exerciseFunction · 0.85
incr_itimeoutFunction · 0.85

Tested by

no test coverage detected