Update player_craftItem.sqf (#1830)

Adding the ability to craft with all Dayz_Ignators when dayz_matchboxCount = true; For example crafting a Firebarrel
This commit is contained in:
A Man
2016-12-26 20:11:22 +01:00
committed by ebayShopper
parent 64f6a9daa3
commit 3151c0df84

View File

@@ -100,6 +100,9 @@ if (_canDo) then {
if (_x == "ItemKnife") then { if (_x == "ItemKnife") then {
{if (_x in Dayz_Gutting) exitWith {_hastoolweapon = true};} forEach (items player); {if (_x in Dayz_Gutting) exitWith {_hastoolweapon = true};} forEach (items player);
}; };
if (_x == "ItemMatchbox") then {
{if (_x in Dayz_Ignators) exitWith {_hastoolweapon = true};} forEach (items player);
};
if (!_hastoolweapon) exitWith { _craft_doLoop = false; _missingTools = true; _missing = _x; }; if (!_hastoolweapon) exitWith { _craft_doLoop = false; _missingTools = true; _missing = _x; };
} forEach _selectedRecipeTools; } forEach _selectedRecipeTools;
@@ -280,4 +283,4 @@ if (_canDo) then {
} else { } else {
localize "str_epoch_player_64" call dayz_rollingMessages; localize "str_epoch_player_64" call dayz_rollingMessages;
}; };
dayz_actionInProgress = false; dayz_actionInProgress = false;