carrying too much to be able to move? */
| 2613 | |
| 2614 | /* carrying too much to be able to move? */ |
| 2615 | staticfn boolean |
| 2616 | carrying_too_much(void) |
| 2617 | { |
| 2618 | int wtcap; |
| 2619 | |
| 2620 | if (((wtcap = near_capacity()) >= OVERLOADED |
| 2621 | || (wtcap > SLT_ENCUMBER |
| 2622 | && (Upolyd ? (u.mh < 5 && u.mh != u.mhmax) |
| 2623 | : (u.uhp < 10 && u.uhp != u.uhpmax)))) |
| 2624 | && !Is_airlevel(&u.uz)) { |
| 2625 | if (wtcap < OVERLOADED) { |
| 2626 | You("don't have enough stamina to move."); |
| 2627 | exercise(A_CON, FALSE); |
| 2628 | } else |
| 2629 | You("collapse under your load."); |
| 2630 | nomul(0); |
| 2631 | return TRUE; |
| 2632 | } |
| 2633 | return FALSE; |
| 2634 | } |
| 2635 | |
| 2636 | /* try to pull free from sticking monster, or you release a monster |
| 2637 | you're sticking to. returns TRUE if you lose your movement. */ |
no test coverage detected