HP loss or passing out from overexerting yourself */
| 3032 | |
| 3033 | /* HP loss or passing out from overexerting yourself */ |
| 3034 | void |
| 3035 | overexert_hp(void) |
| 3036 | { |
| 3037 | int *hp = (!Upolyd ? &u.uhp : &u.mh); |
| 3038 | |
| 3039 | if (*hp > 1) { |
| 3040 | *hp -= 1; |
| 3041 | disp.botl = TRUE; |
| 3042 | } else { |
| 3043 | You("pass out from exertion!"); |
| 3044 | exercise(A_CON, FALSE); |
| 3045 | fall_asleep(-10, FALSE); |
| 3046 | } |
| 3047 | } |
| 3048 | |
| 3049 | /* combat increases metabolism */ |
| 3050 | boolean |
no test coverage detected