Gem Trading mostly finished

Sometimes displays incorrect total price in advanced trading menu.
This commit is contained in:
icomrade
2016-04-30 11:17:41 -04:00
parent b5c2c6c7bd
commit 83694a452e
9 changed files with 309 additions and 54 deletions

View File

@@ -91,6 +91,9 @@ if(_total > 0)then{
_sellCurrency = _sell select 1;
_part = (configFile >> "CfgMagazines" >> _sellCurrency);
_worth = getNumber(_part >> "worth");
if (_worth == 0) then {
_worth = DZE_GemWorthList select (DZE_GemList find _buyCurrency);
};
}else{
_buyCurrency = CurrencyName;
_sellCurrency = CurrencyName;