| 2423 | } |
| 2424 | |
| 2425 | void |
| 2426 | set_wounded_legs(long side, int timex) |
| 2427 | { |
| 2428 | /* KMH -- STEED |
| 2429 | * If you are riding, your steed gets the wounded legs instead. |
| 2430 | * You still call this function, but don't lose hp. |
| 2431 | * Caller is also responsible for adjusting messages. |
| 2432 | */ |
| 2433 | disp.botl = TRUE; |
| 2434 | if (!Wounded_legs) |
| 2435 | ATEMP(A_DEX)--; |
| 2436 | |
| 2437 | if (!Wounded_legs || (HWounded_legs & TIMEOUT) < (long) timex) |
| 2438 | set_itimeout(&HWounded_legs, (long) timex); |
| 2439 | /* the leg being wounded and its timeout might differ from one |
| 2440 | attack to the next, but we don't track the legs separately; |
| 2441 | 5.0: both legs will ultimately heal together; this used to use |
| 2442 | direct assignment instead of bitwise-OR so getting wounded in |
| 2443 | one leg mysteriously healed the other */ |
| 2444 | EWounded_legs |= side; |
| 2445 | encumber_msg(); |
| 2446 | } |
| 2447 | |
| 2448 | void |
| 2449 | heal_legs( |
no test coverage detected