boost STR and CON until hero can carry inventory */
| 926 | |
| 927 | /* boost STR and CON until hero can carry inventory */ |
| 928 | staticfn void |
| 929 | u_init_carry_attr_boost(void) |
| 930 | { |
| 931 | /* make sure you can carry all you have - especially for Tourists */ |
| 932 | while (inv_weight() > 0) { |
| 933 | if (adjattrib(A_STR, 1, TRUE)) |
| 934 | continue; |
| 935 | if (adjattrib(A_CON, 1, TRUE)) |
| 936 | continue; |
| 937 | /* only get here when didn't boost strength or constitution */ |
| 938 | break; |
| 939 | } |
| 940 | } |
| 941 | |
| 942 | /* initialise u, except inventory, attributes, skills and discoveries */ |
| 943 | void |
no test coverage detected