diff options
author | gammafunk <gammafunk@gmail.com> | 2014-05-26 05:21:20 -0500 |
---|---|---|
committer | gammafunk <gammafunk@gmail.com> | 2014-05-26 22:45:16 -0500 |
commit | 55d1b512e3395f07e9341ce9eae5079b581b6894 (patch) | |
tree | 811704017046d8ed62335bd1c45d36476e0dea55 /crawl-ref/source/itemprop.cc | |
parent | b364f15f4eeff0e148b6fc026c01de1327254cd2 (diff) | |
download | crawl-ref-55d1b512e3395f07e9341ce9eae5079b581b6894.tar.gz crawl-ref-55d1b512e3395f07e9341ce9eae5079b581b6894.zip |
Remove player burden and carrying capacity
Item inventory weights (based on item mass) generally don't lead to
meaningful decisions that justify the inventory juggling and interface
problems that come from having burden states. The 52-slot limit is a
better system for limiting inventory and providing inventory-related
decisions because it's not so fine-grained and doesn't require the
player to examine weights for each slot. Work is ongoing to improve
the slot system by consolidating food types and handling strategic
consumables in a different way.
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index f25519d097..57c03d2ddd 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -2439,6 +2439,12 @@ bool gives_resistance(const item_def &item) return false; } +/* + * Return the mass of an item (aum). + * + * @param item The item. + * @returns The mass of the item. +*/ int item_mass(const item_def &item) { int unit_mass = 0; |