Object Interaction Menu: Implementation should be discussed

There is one special case in the object interaction menu that should be handled by stackable already. Marked it with "TODO".
liquid_container
Mark 2016-03-18 17:20:00 +01:00
parent 1d8163e3f2
commit d06f62398c
1 changed files with 2 additions and 0 deletions

View File

@ -913,6 +913,8 @@ private func OnContentsSelection(symbol, extra_data)
{
// If stackable, always try to grab a full stack.
// Imagine armory with 200 arrows, but not 10 stacks with 20 each but 200 stacks with 1 each.
// TODO: 200 stacks of 1 arrow would each merge into the stacks that are already in the target
// when they enter the target. For this reason that special case is, imo, not needed here.
if (obj->~IsStackable())
{
var others = FindObjects(Find_Container(target), Find_ID(symbol), Find_Exclude(obj));