CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.53k stars 4.16k forks source link

Items like batteries can be unloaded in the advanced inventory menu #42573

Closed AzyWng closed 3 years ago

AzyWng commented 4 years ago

Bug Description

When in the advanced inventory menu, items that are loaded into other items - batteries loaded into headlamps, for example - can be dropped in the advanced inventory menu, causing the battery to be unloaded.

Steps To Reproduce

  1. Load an item with a battery.
  2. Open the advanced inventory menu and press I to bring up your inventory.
  3. The battery that is loaded into the item should appear in the advanced inventory menu.
  4. Select a different tile and drop the battery.
  5. Your item should be unloaded, and the battery should be dropped.

Expected behavior

The battery loaded into the item should not appear in the Advanced Inventory Menu, preventing players from accidentally unloading their items.

Versions and configuration

Inglonias commented 4 years ago

This is much more problematic for things like sealed cans of food, where simply dropping the food from your inventory also opens the cans.

Night-Pryanik commented 3 years ago

Can't confirm on 0.E-10390. изображение

Closing until reconfirmed.