Probably not a bad idea. In the meantime we need to discuss solutions if they decide to leave the items smaller in the bank. ;)
Honestly, I think using CountColorTolerance may work. Kind of a rough outline:
Simba Code:
type
TItem = record
name: string;
color, tol: integer;
counts, tolerances: array[0..1] of integer;
end;
function MSI_FindItem(item: TItem): boolean;
begin
if (lookingInBank) then
result := inRange(countColorTolerance(item.color, MBX1, MBY1, MBX2, MBY2, item.tol),
item.counts[0] - item.tolerances[0],
item.counts[0] + item.tolerances[0]
)
else
if (lookingInInv) then
result := inRange(countColorTolerance(item.color, MIX1, MIY1, MIX2, MIY2, item.tol),
item.counts[1] - item.tolerances[1],
item.counts[1] + item.tolerances[1]
);
end;
Would probably be a little more organized then that, but I'm sure we could make it pretty accurate, plus we can always confirm with an uptext check.