CleverRaven / CleverRaven/Cataclysm-DDA

AIM: wrong calculation of how much of a long item destination can hold

Open
#53,370 3 comments 0 reactions 0 assignees View on GitHub
(S2 - Confirmed) <Bug> Info / User Interface Inventory / AIM / Zones
Dominant language
C++
Stars
13.2k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
205

Description

### Describe the bug

I have 29 pointy sticks on a table. I also have some space in my inventory to store those. AIM when 'M'oving claims to be able to put 28 pointy sticks in. De-facto, only 1 pointy stick could be moved to inventory

### Steps to reproduce

Unsure of exact steps/measurements of destination inventory involved.

### Expected behavior

'M'oving calculates amount of items you can hold properly

### Screenshots

![Screenshot_20211211_172049](https://user-images.githubusercontent.com/48674477/145683844-54ca9942-c8e4-46ba-84d1-eef53ee87ee9.png)
![Screenshot_20211211_172105](https://user-images.githubusercontent.com/48674477/145683845-3467c782-be82-4585-b32a-3b8e7f193131.png)
![Screenshot_20211211_172121](https://user-images.githubusercontent.com/48674477/145683846-0a33dd60-5b5a-4b41-857e-7addb9ceb9c4.png)

### Versions and configuration

These are the outputs for the experimental build of commit 00a0caa64d7838379418150e9e3189840853beef

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported AIM move case with 29 pointy sticks, where the calculation claims 28 can fit but only 1 moves. Trace the destination inventory capacity calculation and compare it with the actual transfer behavior. Done means the displayed movable amount matches the number of items that can actually be moved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.