# Dropping and Carrying Weight

**URL:** <https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990>\
**Category:** The Drawing Board\
**Created:** [April 24, 2013, 5:46pm UTC](https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990 "2013-04-24T17:46:26Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Endovior](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/endovior/32/3070_2.png) [@Endovior](https://discourse.cataclysmdda.org/u/Endovior)\
**Post date:** [April 24, 2013, 5:46pm UTC](https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990/1 "2013-04-24T17:46:26Z")

</div>

Any chance it’d be possible to change your displayed carrying weight/volume when dropping items, in the same way it does when you’re picking them up? This is a big deal when trying to drop items to reduce overburden, but it involves a bit of guesswork, since the value doesn’t update until you’ve dropped the items in question.

---

<div class="post-metadata">

**Author:** ![Pthalocy](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@Pthalocy](https://discourse.cataclysmdda.org/u/Pthalocy)\
**Post date:** [April 24, 2013, 6:19pm UTC](https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990/2 "2013-04-24T18:19:40Z")

</div>

[font=calibri]I second this suggestion, moreover because I like consistency across how I interact with my gear, but solving encumbrance issues would go faster, for sure.[/font]

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [April 24, 2013, 11:14pm UTC](https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990/3 "2013-04-24T23:14:14Z")

</div>

Hmm… let me go see how easy that would be.

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [April 25, 2013, 1:08am UTC](https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990/4 "2013-04-25T01:08:55Z")

</div>

Answer: annoying due to the non-modularity of the codebase, but not too hard once I figured out how to approach it.

---

<div class="post-metadata">

**Author:** ![tuck](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tuck](https://discourse.cataclysmdda.org/u/tuck)\
**Post date:** [April 25, 2013, 1:46am UTC](https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990/5 "2013-04-25T01:46:01Z")

</div>

A simple matter to add the count of items at the destination. Just move the \*veh setup above the gui block.

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [April 25, 2013, 2:11am UTC](https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990/6 "2013-04-25T02:11:20Z")

</div>

…what? There’s nothing related to “veh” or vehicles anywhere in inventory\_ui.cpp, tuck, so I honestly have no idea what you’re talking about O\_o.

---

<div class="post-metadata">

**Author:** ![tuck](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@tuck](https://discourse.cataclysmdda.org/u/tuck)\
**Post date:** [April 25, 2013, 2:14am UTC](https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990/7 "2013-04-25T02:14:31Z")

</div>

My mistake… true enough, the items are transferred to the map or vehicle in game.cpp in trunk. I assumed that you broke that stuff out as i did.

VVVVV You could for instance init the vehicle and pass multidrop another parameter as is i guess. Do people other than me like to see how many items are in the square?

---

<div class="post-metadata">

**Author:** ![Soron](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soron/32/885_2.png) [@Soron](https://discourse.cataclysmdda.org/u/Soron)\
**Post date:** [April 25, 2013, 2:20am UTC](https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990/8 "2013-04-25T02:20:41Z")

</div>

No idea what you’ve done in your repo, I’m just working of the DDA master repo, which has game::multidrop in inventory\_ui.cpp.

…Oh! I see what you mean. We want to edit game::multidrop, though, as opposed to game::drop or game::drop\_in\_direction, since game::multidrop is where the UI is defined.

Anyway, got a [working implementation](https://github.com/TheDarklingWolf/Cataclysm-DDA/pull/636), if you wanna check it out.

---

<div class="post-metadata">

**Author:** ![Pthalocy](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@Pthalocy](https://discourse.cataclysmdda.org/u/Pthalocy)\
**Post date:** [April 25, 2013, 4:50am UTC](https://discourse.cataclysmdda.org/t/dropping-and-carrying-weight/990/9 "2013-04-25T04:50:29Z")

</div>

Can it just be said that this process is fascinating as hell to watch?
