1.0.1.5 RC5

+ [CHANGED] Default construction count lowered from 5 to 3.
+ [FIXED] fixed tag friendly system and epoch aura.
+ [CHANGED] some recipes input and construction counts reduced.
This commit is contained in:
vbawol
2013-07-11 11:09:04 -05:00
parent c11e8c47b2
commit d635831074
8 changed files with 85 additions and 75 deletions

View File

@@ -23,7 +23,7 @@ _isDestructable = _obj isKindOf "BuiltItems";
_isWreck = _objType in DZE_isWreck;
_isRemovable = _objType in DZE_isRemovable;
_limit = 5;
_limit = 3;
if(isNumber (configFile >> "CfgVehicles" >> _objType >> "constructioncount")) then {
_limit = getNumber(configFile >> "CfgVehicles" >> _objType >> "constructioncount");
};
@@ -133,7 +133,7 @@ if(_brokenTool) then {
} else {
_removeTool = ["ItemCrowbar","ItemToolbox"] call BIS_fnc_selectRandom;
};
if([player,_removeTool,1] call BIS_fnc_invRemove) then {
if(([player,_removeTool,1] call BIS_fnc_invRemove) > 0) then {
cutText [format["Tool (%1) broke cannot remove %2.",_removeTool,_objType], "PLAIN DOWN"];
};
};