Merge pull request #1 from Torndeco/patch-1

Update ExileServer_system_lootManager_spawnLootInBuilding.sqf
This commit is contained in:
Matthew McConnell 2016-09-28 15:22:24 +01:00 committed by GitHub
commit 90384706e3

View File

@ -38,6 +38,7 @@ _lootWeaponHolderNetIDs = [];
_lootHolder = objNull;
_numberOfItemsToSpawn = (floor (random _maximumNumberOfItemsPerLootSpot)) + 1;
_itemClassNames = [_lootTableName, _numberOfItemsToSpawn] call ExileServer_system_lootManager_dropItem;
if (_itemClassNames isEqualType "") then {_itemClassNames = [_itemClassNames];};
{
_itemClassName = _x;
if !(_itemClassName in _spawnedItemClassNames) then