mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
should allow crafting weapons only
This commit is contained in:
@@ -99,6 +99,7 @@ if (_canDo) then {
|
|||||||
|
|
||||||
// Dry run to see if all parts are available.
|
// Dry run to see if all parts are available.
|
||||||
_proceed = true;
|
_proceed = true;
|
||||||
|
if (count _selectedRecipeInput > 0) then {
|
||||||
{
|
{
|
||||||
_itemIn = _x select 0;
|
_itemIn = _x select 0;
|
||||||
_countIn = _x select 1;
|
_countIn = _x select 1;
|
||||||
@@ -108,6 +109,7 @@ if (_canDo) then {
|
|||||||
if(_qty < _countIn) exitWith { _missing = _itemIn; _missingQty = (_countIn - _qty); _proceed = false; };
|
if(_qty < _countIn) exitWith { _missing = _itemIn; _missingQty = (_countIn - _qty); _proceed = false; };
|
||||||
|
|
||||||
} forEach _selectedRecipeInput;
|
} forEach _selectedRecipeInput;
|
||||||
|
};
|
||||||
|
|
||||||
// If all parts proceed
|
// If all parts proceed
|
||||||
if (_proceed) then {
|
if (_proceed) then {
|
||||||
|
|||||||
Reference in New Issue
Block a user