Fix wrong bloodbag types spawning

This commit is contained in:
icomrade
2016-05-01 14:15:01 -04:00
parent 3f8d79b6ae
commit d25ad694d8
3 changed files with 14 additions and 13 deletions

View File

@@ -32,7 +32,10 @@ if (!local (_this select 0)) exitWith
case Loot_MAGAZINE:
{
(_this select 0) addMagazine (_x select 1);
private "_item";
_item = _x select 1;
if (dayz_classicBloodBagSystem && _item in dayz_typedBags) then {_item = "ItemBloodbag";};
(_this select 0) addMagazine _item;
};
case Loot_BACKPACK:
@@ -43,6 +46,5 @@ if (!local (_this select 0)) exitWith
};
};
};
}
foreach Loot_Select(_this select 1, _this select 2);
} count Loot_Select(_this select 1, _this select 2);
//foreach ([_this select 1, _this select 2] call loot_select);