minimum value for uhpmax is ulevel but for life-saving it is always at least 10 if ulevel is less than that */
| 1144 | /* minimum value for uhpmax is ulevel but for life-saving it is always at |
| 1145 | least 10 if ulevel is less than that */ |
| 1146 | int |
| 1147 | minuhpmax(int altmin) |
| 1148 | { |
| 1149 | if (altmin < 1) |
| 1150 | altmin = 1; |
| 1151 | return max(u.ulevel, altmin); |
| 1152 | } |
| 1153 | |
| 1154 | /* update u.uhpmax or u.mhmax and values of other things that depend upon |
| 1155 | whichever of them is relevant */ |
no outgoing calls
no test coverage detected