mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-25 01:20:49 +03:00
More #1288
This commit is contained in:
@@ -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;
|
||||
@@ -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 {
|
||||
|
||||
@@ -80,7 +80,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >>
|
||||
};
|
||||
};
|
||||
};
|
||||
} count _needNear;
|
||||
} forEach _needNear;
|
||||
|
||||
|
||||
if(_abort) exitWith {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user