common wounded legs feedback */
| 2405 | |
| 2406 | /* common wounded legs feedback */ |
| 2407 | void |
| 2408 | legs_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 | |
| 2425 | void |
| 2426 | set_wounded_legs(long side, int timex) |
no test coverage detected