should allow crafting weapons only

This commit is contained in:
[VB]AWOL
2014-01-26 11:49:03 -06:00
parent 633fba22cc
commit b551a6f343

View File

@@ -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 {