mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
- Moved player_countMagazines to \compile\ folder - Removed several unused and obsolete files - Moved some epoch functions out of compiles.sqf into individual files - Synced order and formatting with 1.8.7. Much easier to compare now. Any changes I make to official DayZ Mod code and files I also submit as a pull request to them.
13 lines
395 B
Plaintext
13 lines
395 B
Plaintext
_trade_total = 0;
|
|
{
|
|
_part_in_configClass = configFile >> "CfgMagazines" >> (_x select 0);
|
|
if (isClass (_part_in_configClass)) then {
|
|
_part_inWorth = (_part_in_configClass >> "worth");
|
|
if isNumber (_part_inWorth) then {
|
|
_trade_total = _trade_total + (getNumber(_part_inWorth) * (_x select 1));
|
|
};
|
|
};
|
|
} count _this;
|
|
|
|
//diag_log format["DEBUG TRADER ITEMCOST: %1", _this];
|
|
_trade_total |