mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
1.0.0.1
+ [FIXED] Crafting removed item counter was incorrect.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
* Crafting by [VB]AWOL
|
* Crafting by [VB]AWOL
|
||||||
* usage: spawn player_craftitem;
|
* usage: spawn player_craftitem;
|
||||||
*/
|
*/
|
||||||
private ["_onLadder","_canDo","_selectedRecipeOutput","_proceed","_itemIn","_countIn","_missing","_missingQty","_qty","_itemOut","_countOut","_started","_finished","_animState","_isMedic","_removed","_tobe_removed_total","_textCreate","_text","_id","_textMissing","_selectedRecipeInput"];
|
private ["_onLadder","_canDo","_selectedRecipeOutput","_proceed","_itemIn","_countIn","_missing","_missingQty","_qty","_itemOut","_countOut","_started","_finished","_animState","_isMedic","_removed","_tobe_removed_total","_textCreate","_id","_textMissing","_selectedRecipeInput","_num_removed","_removed_total","_temp_removed_array","_isFireNear"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText ["Crafting already in progress." , "PLAIN DOWN"]; };
|
if(TradeInprogress) exitWith { cutText ["Crafting already in progress." , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
TradeInprogress = true;
|
||||||
@@ -152,9 +152,12 @@ if (_isFireNear >= 1 and _canDo) then {
|
|||||||
|
|
||||||
{
|
{
|
||||||
if( (_removed < _countIn) && ((_x == _itemIn) || configName(inheritsFrom(configFile >> "cfgMagazines" >> _x)) == _itemIn)) then {
|
if( (_removed < _countIn) && ((_x == _itemIn) || configName(inheritsFrom(configFile >> "cfgMagazines" >> _x)) == _itemIn)) then {
|
||||||
_removed = _removed + ([player,_x] call BIS_fnc_invRemove);
|
_num_removed = ([player,_x] call BIS_fnc_invRemove);
|
||||||
_removed_total = _removed_total + _removed;
|
_removed = _removed + _num_removed;
|
||||||
_temp_removed_array set [count _temp_removed_array,_x];
|
_removed_total = _removed_total + _num_removed;
|
||||||
|
if(_num_removed >= 1) then {
|
||||||
|
_temp_removed_array set [count _temp_removed_array,_x];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
} forEach magazines player;
|
} forEach magazines player;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ class CfgMods
|
|||||||
hidePicture = 0;
|
hidePicture = 0;
|
||||||
hideName = 0;
|
hideName = 0;
|
||||||
action = "http://www.dayzepoch.com";
|
action = "http://www.dayzepoch.com";
|
||||||
version = "1.0";
|
version = "1.0.0.1";
|
||||||
hiveVersion = 0.96; //0.93
|
hiveVersion = 0.96; //0.93
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ class RscDisplayMain : RscStandardDisplay
|
|||||||
class DAYZ_Version : CA_Version
|
class DAYZ_Version : CA_Version
|
||||||
{
|
{
|
||||||
idc = -1;
|
idc = -1;
|
||||||
text = "DayZ Epoch 1.0 (1.7.6.1)";
|
text = "DayZ Epoch 1.0.0.1 (1.7.6.1)";
|
||||||
y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)";
|
y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)";
|
||||||
};
|
};
|
||||||
delete CA_TitleMainMenu;
|
delete CA_TitleMainMenu;
|
||||||
|
|||||||
Reference in New Issue
Block a user