mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix wrong buildables count displayed in plot management
This commit is contained in:
@@ -11,11 +11,10 @@ if (_inList) exitWith {localize "STR_EPOCH_PLOTMANAGEMENT_ADDFRIEND_ALREADYONTHE
|
||||
if ((count _friends) == DZE_MaxPlotFriends) exitWith { format[localize "STR_EPOCH_PLOTMANAGEMENT_ADDFRIEND_FRIENDLIMIT", DZE_MaxPlotFriends] call dayz_rollingMessages;};
|
||||
_friends set [(count _friends), _toAdd];
|
||||
_thePlot setVariable ["plotfriends", _friends, true];
|
||||
|
||||
PVDZ_veh_Save = [_thePlot,"gear"];
|
||||
if (isServer) then {
|
||||
PVDZ_veh_Save call server_updateObject;
|
||||
} else {
|
||||
PVDZ_veh_Save = [_thePlot,"gear"];
|
||||
publicVariableServer "PVDZ_veh_Save";
|
||||
};
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
private ["_newWealth","_missing","_missingQty","_proceed","_itemIn","_countIn","_target","_objectClasses","_range","_objects","_requirements","_count","_cost","_option"];
|
||||
private ["_newWealth","_missing","_missingQty","_proceed","_itemIn","_countIn","_target","_objectClasses","_range","_objects","_requirements","_count","_cost","_option","_buildables"];
|
||||
disableSerialization;
|
||||
|
||||
_range = DZE_PlotPole select 0;
|
||||
_count = count ((getPosATL player) nearObjects ["All",_range]);
|
||||
_buildables = DZE_maintainClasses + DZE_LockableStorage + ["DZ_buildables","DZ_storage_base"];
|
||||
_count = count (nearestObjects [[player] call FNC_getPos,_buildables,_range]);
|
||||
|
||||
_colour = "#ffffff";
|
||||
|
||||
|
||||
@@ -13,11 +13,10 @@ _newList = [];
|
||||
};
|
||||
} count _friends;
|
||||
_thePlot setVariable ["plotfriends", _newList, true];
|
||||
|
||||
PVDZ_veh_Save = [_thePlot,"gear"];
|
||||
if (isServer) then {
|
||||
PVDZ_veh_Save call server_updateObject;
|
||||
} else {
|
||||
PVDZ_veh_Save = [_thePlot,"gear"];
|
||||
publicVariableServer "PVDZ_veh_Save";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user