Add setting to disable base takeover #1886

No classes inherit from Generator_DZ, so there is no need to use
isKindOf over typeOf.
This commit is contained in:
ebaydayz
2017-02-01 12:16:16 -05:00
parent 9f7ae93bef
commit 6aa5c9b64f
7 changed files with 22 additions and 24 deletions

View File

@@ -130,8 +130,8 @@ while {_isOk} do {
if(_finished) then {
_counter = _counter + 1;
// 4% chance to break a required tool each pass
if((_isDestructable || _isRemovable) && !_isOwnerOfObj) then {
if (dayz_toolBreaking && {[0.04] call fn_chance}) then {_brokenTool = true;};
if ((_isDestructable || _isRemovable) && {!_isOwnerOfObj} && {dayz_toolBreaking && {[0.04] call fn_chance}}) then {
_brokenTool = true;
};
};
if(_brokenTool) exitWith {