Cataclysm-dda: Inventory / AIM do not merge display of identical items in separate pockets

Created on 1 Jun 2020  路  8Comments  路  Source: CleverRaven/Cataclysm-DDA

Describe the bug

If the same stackable item is carried in two (or more) different pockets, two (or more) entries for the item appear on inventory / in the AIM.

Steps To Reproduce

  1. Create a test character, drop all items/clothes
  2. Spawn and wear cargo pants
  3. Spawn and drop 500 thread
  4. Pick up 250 thread.
  5. Pick up 250 thread.
  6. Check inventory. There will be two entries for thread (250), and the cargo pants are described as cargo pants with 2 items.
  7. Check AIM. There will be two entries for thread.
  8. examine the cargo pants. The two separate thread stacks are in different pockets.

Expected behavior

inventory / AIM should merge identical item stacks into a single displayed entry even if carried in separate pockets. As it stands the extra entries don't give more information (you can't, for example, determine which pocket they're in) and you can't really do anything useful with them that you couldn't do with a single entry, and it's not obvious that the reason for the duplication is that they're in different pockets.

(Calling this a bug because it's a UI regression; it could also be fixed by enhancing the UI to provide more context to distinguish the two apparently redundant entries)

Versions and configuration

  • OS: Linux

    • OS Version: LSB Version: core-9.20170808ubuntu1-noarch:printing-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch; Distributor ID: Ubuntu; Description: Ubuntu 18.04.4 LTS; Release: 18.04; Codename: bionic;

  • Game Version: 0.E-2607-ga3c5c682ad-dirty [64-bit] (upstream bd62ef6ad96c6c828f996b2e03b22f1b795bec6e)
  • Graphics Version: Tiles
  • Game Language: System language []
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food]
    ]
Info / User Interface Inventory / AIM / Zones stale

Most helpful comment

Ok, but the current display tells the player nothing about that, so it's mostly theoretical. If you're going to distinguish items in different pockets, then they have to be _distinguished_ somehow, or how is the player going to choose which item to manipulate?

All 8 comments

this is not a bug since the two items in different pockets are in different locations and can have different access times.

Ok, but the current display tells the player nothing about that, so it's mostly theoretical. If you're going to distinguish items in different pockets, then they have to be _distinguished_ somehow, or how is the player going to choose which item to manipulate?

Here's an example of what I mean:

Screenshot from 2020-06-01 22-42-08

Based on that screenshot - what's the difference between the two lots of asprin? What about the two lots of multivitamins?

(There probably _is_ a difference with access time for the multivitamins, since one lot is in a bottle and the other is loose in clothing somewhere - but I can't tell which is which from the inventory display, and so as it stands the separation into two lines is not helpful)

would it really be good UX to put the "activation cost" here? (wield cost) that's the question we really need to answer. and i don't mean a personal opinion, but if it's objectively good UX

I think it's necessary to tell people which instance of duplicate items to interact with.

would it really be good UX to put the "activation cost" here?

Identifying the containing pocket might be a better option? (Not sure how you'd handle nested pockets without a lot of verbosity, though)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not \'bump\' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

This issue has been automatically closed due to lack of activity. This does not mean that we do not value the issue. Feel free to request that it be re-opened if you are going to actively work on it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Robik81 picture Robik81  路  74Comments

I-am-Erk picture I-am-Erk  路  54Comments

Night-Pryanik picture Night-Pryanik  路  40Comments

Coolthulhu picture Coolthulhu  路  68Comments

Firestorm01X2 picture Firestorm01X2  路  59Comments