mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Fix updateUniqueItemsList incorrectly identifying backpacks (#8463)
This commit is contained in:
parent
64db683e53
commit
310da98c5e
@ -33,8 +33,8 @@ private _configGlasses = configFile >> "CfgGlasses";
|
|||||||
switch true do {
|
switch true do {
|
||||||
// Weapon mag
|
// Weapon mag
|
||||||
case (
|
case (
|
||||||
isClass (_configMagazines >> _x) &&
|
isClass (_configMagazines >> _x) &&
|
||||||
{_x in (_itemsCache select 2)} &&
|
{_x in (_itemsCache select 2)} &&
|
||||||
{!(_x in (GVAR(virtualItems) select IDX_VIRT_ITEMS_ALL))}
|
{!(_x in (GVAR(virtualItems) select IDX_VIRT_ITEMS_ALL))}
|
||||||
): {
|
): {
|
||||||
(GVAR(virtualItems) select 19) pushBackUnique _x;
|
(GVAR(virtualItems) select 19) pushBackUnique _x;
|
||||||
@ -42,7 +42,7 @@ private _configGlasses = configFile >> "CfgGlasses";
|
|||||||
|
|
||||||
// Mag throw
|
// Mag throw
|
||||||
case (
|
case (
|
||||||
isClass (_configMagazines >> _x) &&
|
isClass (_configMagazines >> _x) &&
|
||||||
{_x in (_itemsCache select 15)} &&
|
{_x in (_itemsCache select 15)} &&
|
||||||
{!(_x in (GVAR(virtualItems) select 15))}
|
{!(_x in (GVAR(virtualItems) select 15))}
|
||||||
): {
|
): {
|
||||||
@ -51,7 +51,7 @@ private _configGlasses = configFile >> "CfgGlasses";
|
|||||||
|
|
||||||
// Mag put
|
// Mag put
|
||||||
case (
|
case (
|
||||||
isClass (_configMagazines >> _x) &&
|
isClass (_configMagazines >> _x) &&
|
||||||
{_x in (_itemsCache select 16)} &&
|
{_x in (_itemsCache select 16)} &&
|
||||||
{!(_x in (GVAR(virtualItems) select 16))}
|
{!(_x in (GVAR(virtualItems) select 16))}
|
||||||
): {
|
): {
|
||||||
@ -100,13 +100,13 @@ private _configGlasses = configFile >> "CfgGlasses";
|
|||||||
{!(_x in ((_itemsCache select 1) select 0))} &&
|
{!(_x in ((_itemsCache select 1) select 0))} &&
|
||||||
{!(_x in ((_itemsCache select 1) select 1))} &&
|
{!(_x in ((_itemsCache select 1) select 1))} &&
|
||||||
{!(_x in ((_itemsCache select 1) select 2))} &&
|
{!(_x in ((_itemsCache select 1) select 2))} &&
|
||||||
{!(_x in ((_itemsCache select 1) select 3))}
|
{!(_x in ((_itemsCache select 1) select 3))}
|
||||||
): {
|
): {
|
||||||
(GVAR(virtualItems) select 18) pushBackUnique _x;
|
(GVAR(virtualItems) select 18) pushBackUnique _x;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Backpacks
|
// Backpacks
|
||||||
case (isClass (_configVehicles >> _x)): {
|
case (getNumber (_configVehicles >> _x >> "isBackpack") == 1): {
|
||||||
(GVAR(virtualItems) select 23) pushBackUnique _x;
|
(GVAR(virtualItems) select 23) pushBackUnique _x;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user