carrying capacity

As suggested in the newsgroup, re-factor the calculation of carrcap
so that any change in strength or constitution affects your capacity.
The integer division was rounding off the result.
This commit is contained in:
cohrs
2003-03-22 17:25:09 +00:00
parent f6f89a2075
commit 2ae7f10dd9
2 changed files with 2 additions and 1 deletions

View File

@@ -2111,7 +2111,7 @@ weight_cap()
{
register long carrcap;
carrcap = (((ACURRSTR + ACURR(A_CON))/2)+1)*50;
carrcap = 25*(ACURRSTR + ACURR(A_CON)) + 50;
if (Upolyd) {
/* consistent with can_carry() in mon.c */
if (youmonst.data->mlet == S_NYMPH)