mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 09:32:02 +03:00
Add better handling for unbuyable items, vehicles on trading
This commit is contained in:
@@ -57,19 +57,20 @@ if (Z_SingleCurrency) then {
|
||||
"<img image='%1' size='3' align='center'/><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%8: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%9: </t><t color='#ffffff' size='0.7'>%3</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%6 %7</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%6 %12</t><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%10: </t><t color='#ffffff' size='0.7'>%5 %7</t><br />",
|
||||
_picture,
|
||||
_display,
|
||||
_class,
|
||||
'lazy',
|
||||
if (_sellPrice >= 0) then {[_sellPrice] call BIS_fnc_numberText;} else {"";},
|
||||
if (_buyPrice >= 0) then {[_buyPrice] call BIS_fnc_numberText;} else {"";},
|
||||
if (_buyPrice >= 0) then {[_buyPrice] call BIS_fnc_numberText;} else {localize "STR_EPOCH_TRADE_UNBUYABLE";},
|
||||
CurrencyName,
|
||||
localize "STR_EPOCH_NAME",
|
||||
localize "STR_EPOCH_CLASS",
|
||||
localize "STR_EPOCH_PLAYER_292",
|
||||
localize "STR_EPOCH_PLAYER_291"
|
||||
localize "STR_EPOCH_PLAYER_291",
|
||||
if (_buyPrice >= 0) then {CurrencyName} else {""}
|
||||
];
|
||||
} else {
|
||||
_picSell = "";
|
||||
@@ -81,7 +82,10 @@ if (Z_SingleCurrency) then {
|
||||
if (_buyPrice >= 0) then {
|
||||
_picBuy = getText (configFile >> "CfgMagazines" >> _buyCurrency >> "picture");
|
||||
_buyCurrency = getText (configFile >> "CfgMagazines" >> _buyCurrency >> "displayName");
|
||||
} else {
|
||||
_buyCurrency = "";
|
||||
};
|
||||
|
||||
_formattedText = format [
|
||||
"<img image='%1' size='3' align='center'/><br />" +
|
||||
"<t color='#bcbcbc' size='0.7'>%11: </t><t color='#ffffff' size='0.7'>%2</t><br />" +
|
||||
@@ -93,7 +97,7 @@ if (Z_SingleCurrency) then {
|
||||
_class,
|
||||
'lazy',
|
||||
if (_sellPrice >= 0) then {_sellPrice} else {"";},
|
||||
if (_buyPrice >= 0) then {_buyPrice} else {"";},
|
||||
if (_buyPrice >= 0) then {_buyPrice} else {localize "STR_EPOCH_TRADE_UNBUYABLE";},
|
||||
_sellCurrency,
|
||||
_picSell,
|
||||
_buyCurrency,
|
||||
|
||||
Reference in New Issue
Block a user