This commit is contained in:
icomrade
2014-06-01 03:29:44 -04:00
parent 77d835289b
commit 6b9b176736
10 changed files with 25 additions and 25 deletions

View File

@@ -74,7 +74,7 @@ _cookedmeat = meatcooked;
cutText [format[(localize "str_epoch_player_130"),_textraw], "PLAIN DOWN"];
};
};
} count _rawmeat;
} forEach _rawmeat;
s_player_cook = -1;
DZE_ActionInProgress = false;

View File

@@ -91,8 +91,8 @@ switch _option do {
_temp_removed_array set [count _temp_removed_array,_x];
};
};
} count magazines player;
} count _requirements;
} forEach magazines player;
} forEach _requirements;
// all required items removed from player gear
if (_tobe_removed_total == _removed_total) then {

View File

@@ -80,7 +80,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >>
};
};
};
} count _needNear;
} forEach _needNear;
if(_abort) exitWith {

View File

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

View File

@@ -111,7 +111,7 @@ if (_canDo) then {
if(_qty < _countIn) exitWith { _missing = _itemIn; _missingQty = (_countIn - _qty); _proceed = false; };
} count _selectedRecipeInput;
} forEach _selectedRecipeInput;
};
// If all parts proceed
@@ -194,9 +194,9 @@ if (_canDo) then {
_temp_removed_array set [count _temp_removed_array,_x];
};
};
} count magazines player;
} forEach magazines player;
} count _selectedRecipeInput;
} forEach _selectedRecipeInput;
//diag_log format["removed: %1 of: %2", _removed, _tobe_removed_total];

View File

@@ -95,7 +95,7 @@ if ((count _upgrade) > 0) then {
_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;
@@ -123,9 +123,9 @@ if ((count _upgrade) > 0) then {
};
};
} count magazines player;
} forEach magazines player;
} count _requirements;
} forEach _requirements;
// all parts removed proceed
if (_tobe_removed_total == _removed_total) then {