mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Advanced trading tidying, spelling fixes, private fixes and string fixes (#1716)
* Advanced trading tidying, spelling fixes, private fixes and string fixes. Fixes snap building issue with metal floors Fixed spelling mistakes in various scripts Fixed formatting uglyness in various scripts Fixed invalid private lines in various scripts Changed Advanced trading so buying worked more like selling, You can't select backpack if you don't have a pack nor can you select a vehicle if you don't have a vehicle. Removed some redundant strings from Advanced trading and changed a few of the strings to be more englishy Removed the ability to buy a backpack into your backpack (You cant do this anyway) Fixed a bug where if you had nothing in your backpack it would break the checkArrayInConfig script so the titlebar would not refresh correctly Removed slot counts on no backpack and no vehicle (No need for it, just clutter) Moved backpack/vehicle checking to z_at_getContainer.sqf * Last part of tidyness fixes Last part of tidyness fixes * Actual backpack fix Lets actually fix the buying backpack into backpack or backpack when you already have one. * Missing from commit Missing from commit
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
private ["_newWealth","_missing","_missingQty","_proceed","_itemIn","_countIn","_target","_objectClasses","_range","_objects","_requirements","_count","_cost","_option","_buildables"];
|
||||
private ["_range","_buildables","_count","_colour","_result","_ctrl"];
|
||||
disableSerialization;
|
||||
|
||||
_range = DZE_PlotPole select 0;
|
||||
@@ -7,11 +7,11 @@ _count = count (nearestObjects [[player] call FNC_getPos,_buildables,_range]);
|
||||
|
||||
_colour = "#ffffff";
|
||||
|
||||
if(_count / DZE_BuildingLimit * 100 < 40)then{
|
||||
_colour = "#00ff00";
|
||||
if (_count / DZE_BuildingLimit * 100 < 40) then {
|
||||
_colour = "#00ff00";
|
||||
};
|
||||
if(_count / DZE_BuildingLimit * 100 > 75)then{
|
||||
_colour = "#ff0000";
|
||||
if (_count / DZE_BuildingLimit * 100 > 75) then {
|
||||
_colour = "#ff0000";
|
||||
};
|
||||
|
||||
_ctrl = ((uiNamespace getVariable "PlotManagement") displayCtrl 7014);
|
||||
|
||||
Reference in New Issue
Block a user