# Battery System deletes batteries on the floor

**URL:** https://discourse.cataclysmdda.org/t/battery-system-deletes-batteries-on-the-floor/21565
**Category:** The Garage
**Created:** [October 1, 2019, 11:00pm UTC](https://discourse.cataclysmdda.org/t/battery-system-deletes-batteries-on-the-floor/21565 "2019-10-01T23:00:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Cakesicle](https://avatars.discourse-cdn.com/v4/letter/c/c77e96/32.png) [@Cakesicle](https://discourse.cataclysmdda.org/u/Cakesicle)
#### Post date: [October 1, 2019, 11:00pm UTC](https://discourse.cataclysmdda.org/t/battery-system-deletes-batteries-on-the-floor/21565/1 "2019-10-01T23:00:30Z")

</div>

Pretty simple bug, but one that silently removed most of my batteries!

What I’d been doing is keeping rechargeable batteries in a battery recharger trunk in my vehicle. I’d go up, press E, eat the ones in the trunk and leave, assuming the batteries would be freshly upon my return. As it turns out, (E)ating batteries from the player inventory depletes their energy charge (as expected), but doing it to ones on the ground or in a trunk simply deletes them.

Seems either way it’s some unintended behaviour?

Note: This only happens if the entire charge of the battery would be depleted.

---

<div class="post-metadata">

### Author: ![Paul\_Blay](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blay/32/6803_2.png) [@Paul\_Blay](https://discourse.cataclysmdda.org/u/Paul_Blay)
#### Post date: [October 2, 2019, 2:03am UTC](https://discourse.cataclysmdda.org/t/battery-system-deletes-batteries-on-the-floor/21565/2 "2019-10-02T02:03:48Z")

</div>

Wow, I haven’t noticed this happen? I have a ton of batteries and I suppose it’s possible I just haven’t noticed the number going down.

… now that you say this, I do have a suspicion that I have less Heavy Battery (high capacity) than I used to …

Give me back my batteries, CataclylsmDDA!

Seriously, I’ll keep an eye out from now on.

---

<div class="post-metadata">

### Author: ![gtgiygus](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gtgiygus/32/6096_2.png) [@gtgiygus](https://discourse.cataclysmdda.org/u/gtgiygus)
#### Post date: [October 2, 2019, 5:51pm UTC](https://discourse.cataclysmdda.org/t/battery-system-deletes-batteries-on-the-floor/21565/3 "2019-10-02T17:51:46Z")

</div>

I have accidentally dropped things through the floor of a vehicle before. I think it happens since aisle spaces have no storage at all, so the default is they wind up on the ground outside. Could this have happened?

---

<div class="post-metadata">

### Author: ![Cakesicle](https://avatars.discourse-cdn.com/v4/letter/c/c77e96/32.png) [@Cakesicle](https://discourse.cataclysmdda.org/u/Cakesicle)
#### Post date: [October 2, 2019, 5:57pm UTC](https://discourse.cataclysmdda.org/t/battery-system-deletes-batteries-on-the-floor/21565/4 "2019-10-02T17:57:13Z")

</div>

No. I started a new game on a new world and spawned batteries to be sure. If it’s not in the player inventory the battery is destroyed if the charge would be reduced to 0.

---

<div class="post-metadata">

### Author: ![Paul\_Blay](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/paul_blay/32/6803_2.png) [@Paul\_Blay](https://discourse.cataclysmdda.org/u/Paul_Blay)
#### Post date: [October 3, 2019, 9:25am UTC](https://discourse.cataclysmdda.org/t/battery-system-deletes-batteries-on-the-floor/21565/5 "2019-10-03T09:25:37Z")

</div>

OK, I checked this and can confirm. Works on disposable and rechargeable batteries left on the ground.

> <https://github.com/CleverRaven/Cataclysm-DDA/issues/34424>

I submitted a bug report.
