diff options
author | David Ploog <dploog@users.sourceforge.net> | 2009-10-11 07:39:10 +0200 |
---|---|---|
committer | David Ploog <dploog@users.sourceforge.net> | 2009-10-11 07:39:10 +0200 |
commit | 57ccb0eb3bc10dc50eef9c39266d2c758e6e4745 (patch) | |
tree | 83bd6a70aacfcc377b1fd7e4cdf216b238d11cf3 /crawl-ref/source/player.cc | |
parent | 5b5271eebe9650ea6a0dbfc7cb429992063a680a (diff) | |
download | crawl-ref-57ccb0eb3bc10dc50eef9c39266d2c758e6e4745.tar.gz crawl-ref-57ccb0eb3bc10dc50eef9c39266d2c758e6e4745.zip |
New carrying capacity formula; Strength worth more.
New formula: CC = 200*Str + 2*body_weight
Old formula: CC = 100*Str + 3500
In both cases, you get another 1000 for being airborne.
body_weight is 300 (Sp), 425 (Ha, Ko), 1300 (Ce, Na, Og, Tr), 550 (else).
Statue form has a positive effect on CC, lich form has a negative effect.
Formula may need tweaking after some testing.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index ac567372a5..e8181677a7 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -2876,7 +2876,10 @@ int player_sust_abil(bool calc_unid) int carrying_capacity(burden_state_type bs) { - int cap = 3500 + (you.strength * 100) + (player_is_airborne() ? 1000 : 0); + int cap = (2 * you.body_weight) + (you.strength * 200) + + (player_is_airborne() ? 1000 : 0); + // We are nice to the lighter species in that strength adds absolutely + // instead of relatively to body weight. --dpeg if (bs == BS_UNENCUMBERED) return ((cap * 5) / 6); |