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

Function legs_in_no_shape

src/do.c:2407–2423  ·  view source on GitHub ↗

common wounded legs feedback */

Source from the content-addressed store, hash-verified

2405
2406/* common wounded legs feedback */
2407void
2408legs_in_no_shape(const char *for_what, /* jumping, kicking, riding */
2409 boolean by_steed)
2410{
2411 if (by_steed && u.usteed) {
2412 pline("%s is in no shape for %s.", Monnam(u.usteed), for_what);
2413 } else {
2414 long wl = (EWounded_legs & BOTH_SIDES);
2415 const char *bp = body_part(LEG);
2416
2417 if (wl == BOTH_SIDES)
2418 bp = makeplural(bp);
2419 Your("%s%s %s in no shape for %s.",
2420 (wl == LEFT_SIDE) ? "left " : (wl == RIGHT_SIDE) ? "right " : "",
2421 bp, (wl == BOTH_SIDES) ? "are" : "is", for_what);
2422 }
2423}
2424
2425void
2426set_wounded_legs(long side, int timex)

Callers 3

mount_steedFunction · 0.85
dokickFunction · 0.85
jumpFunction · 0.85

Calls 5

MonnamFunction · 0.85
body_partFunction · 0.85
makepluralFunction · 0.85
YourFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected