mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Allow increasing quantity of left panel items in cargo (#9694)
* Unique items fix * attachment lookup Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> * container item lookup Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> * allow increasing quantity of misplaced virtual items --------- Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
This commit is contained in:
parent
92d199e6ab
commit
257ae757be
@ -333,9 +333,9 @@ switch (_ctrlIDC) do {
|
|||||||
// Unknown items
|
// Unknown items
|
||||||
{
|
{
|
||||||
if !(_x in _items) then {
|
if !(_x in _items) then {
|
||||||
["CfgWeapons", _x, true, true, true] call _fnc_fillRightContainer;
|
["CfgWeapons", _x, true, !(_x in GVAR(virtualItemsFlat)), true] call _fnc_fillRightContainer;
|
||||||
};
|
};
|
||||||
} forEach (keys (GVAR(virtualItems) get IDX_VIRT_UNIQUE_UNKNOWN_ITEMS));
|
} forEach (keys (GVAR(virtualItems) get IDX_VIRT_UNIQUE_UNKNOWN_ITEMS)); // if an item is here but in virtual items, it's just in the wrong place
|
||||||
};
|
};
|
||||||
// Custom buttons
|
// Custom buttons
|
||||||
default {
|
default {
|
||||||
@ -363,7 +363,7 @@ switch (_ctrlIDC) do {
|
|||||||
};
|
};
|
||||||
// Unknown items
|
// Unknown items
|
||||||
case (_x in (GVAR(virtualItems) get IDX_VIRT_UNIQUE_UNKNOWN_ITEMS)): {
|
case (_x in (GVAR(virtualItems) get IDX_VIRT_UNIQUE_UNKNOWN_ITEMS)): {
|
||||||
["CfgWeapons", _x, true, true, true] call _fnc_fillRightContainer;
|
["CfgWeapons", _x, true, !(_x in GVAR(virtualItemsFlat)), true] call _fnc_fillRightContainer;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} forEach _items;
|
} forEach _items;
|
||||||
|
Loading…
Reference in New Issue
Block a user