The-Alpha-Project / alpha-core

0.5.3 experimental emulator written in Python.
GNU General Public License v3.0
258 stars 77 forks source link

Wrong logic when looting stackable items #1367

Closed GrenderG closed 5 months ago

GrenderG commented 5 months ago

Describe the bug At this moment if you have stackable items placed in bank but below the max stack limit and you loot another item of that same type, it will be placed in your bank instead of your bags.

Steps to reproduce

  1. Place some stackable item in your bank (for example a couple of Linen Cloth).
  2. Go outside and loot a Linen Cloth.
  3. See how it goes to bank instead of bags.

Expected behavior Looted items must always be placed in your bags, not bank.

GrenderG commented 5 months ago

Note: seems like this doesn't always happen, so an edge case might be involved.