add new trade system for items

will auto convert to highest bar count

also line 289 fixes Error ==: Type Array when tagging friendly
This commit is contained in:
[VB]AWOL
2014-01-26 13:04:56 -06:00
parent 36888be75c
commit 474e96e9ac
4 changed files with 102 additions and 183 deletions

View File

@@ -15,6 +15,7 @@ diag_log format["DEBUG TRADER INPUT TOTAL: %1", _trade_total];
_total_currency_dry = call epoch_totalCurrency;
_return_change_dry = 0;
if (_buyOrSell == 0) then {
//buy
_return_change_dry = _total_currency_dry - _trade_total;
@@ -22,6 +23,9 @@ if (_buyOrSell == 0) then {
//sell
_return_change_dry = _total_currency_dry + _trade_total;
};
diag_log format["DEBUG TRADER DRY: %1", _return_change_dry];
if (_return_change_dry >= 0) then {
_canAfford = true;
};