Remove duplicate "DZ_buildables"

DZ_buildables is already part of DZE_maintainClasses
This commit is contained in:
oiad
2018-04-16 23:43:00 +12:00
parent d6cf70711a
commit bac0071745
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ disableSerialization;
_range = DZE_PlotPole select 0; _range = DZE_PlotPole select 0;
_target = (([player] call FNC_getPos) nearEntities ["Plastic_Pole_EP1_DZ",15]) select 0; _target = (([player] call FNC_getPos) nearEntities ["Plastic_Pole_EP1_DZ",15]) select 0;
// Also count safes, lockboxes, vanilla buildables, tents and stashes against DZE_BuildingLimit // Also count safes, lockboxes, vanilla buildables, tents and stashes against DZE_BuildingLimit
_buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_buildables","DZ_storage_base"]; _buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_storage_base"];
_count = count (nearestObjects [_target,_buildables,_range]); _count = count (nearestObjects [_target,_buildables,_range]);
_colour = "#ffffff"; _colour = "#ffffff";

View File

@@ -101,7 +101,7 @@ if (!_canBuild) exitWith {
if (DZE_BuildHeightLimit > 0 && {([player] call fnc_getPos) select 2 > DZE_BuildHeightLimit}) exitWith {dayz_actionInProgress = false; format[localize "STR_EPOCH_PLAYER_168",DZE_BuildHeightLimit] call dayz_rollingMessages; [false, _isPole];}; if (DZE_BuildHeightLimit > 0 && {([player] call fnc_getPos) select 2 > DZE_BuildHeightLimit}) exitWith {dayz_actionInProgress = false; format[localize "STR_EPOCH_PLAYER_168",DZE_BuildHeightLimit] call dayz_rollingMessages; [false, _isPole];};
// Also count safes, lockboxes, vanilla buildables, tents and stashes against DZE_BuildingLimit // Also count safes, lockboxes, vanilla buildables, tents and stashes against DZE_BuildingLimit
_buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_buildables","DZ_storage_base"]; _buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_storage_base"];
_center = if (isNull _nearestPole) then {_pos} else {_nearestPole}; _center = if (isNull _nearestPole) then {_pos} else {_nearestPole};
if ((count (nearestObjects [_center,_buildables,_distance])) >= DZE_BuildingLimit) exitWith {dayz_actionInProgress = false; format[localize "str_epoch_player_41",_distance] call dayz_rollingMessages; [false, _isPole];}; if ((count (nearestObjects [_center,_buildables,_distance])) >= DZE_BuildingLimit) exitWith {dayz_actionInProgress = false; format[localize "str_epoch_player_41",_distance] call dayz_rollingMessages; [false, _isPole];};