mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-21 02:46:29 +03:00
More #1288
This commit is contained in:
@@ -45,7 +45,7 @@ _proceed = true;
|
||||
_countIn = _x select 1;
|
||||
_qty = { (_x == _itemIn) || (configName(inheritsFrom(configFile >> "cfgMagazines" >> _x)) == _itemIn) } count magazines player;
|
||||
if(_qty < _countIn) exitWith { _missing = _itemIn; _missingQty = (_countIn - _qty); _proceed = false; };
|
||||
} count _requirements;
|
||||
} forEach _requirements;
|
||||
|
||||
if (_proceed) then {
|
||||
[1,1] call dayz_HungerThirst;
|
||||
@@ -73,9 +73,9 @@ if (_proceed) then {
|
||||
};
|
||||
};
|
||||
|
||||
} count magazines player;
|
||||
} forEach magazines player;
|
||||
|
||||
} count _requirements;
|
||||
} forEach _requirements;
|
||||
|
||||
// all parts removed proceed
|
||||
if (_tobe_removed_total == _removed_total) then {
|
||||
|
||||
Reference in New Issue
Block a user