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.
10 lines
253 B
Plaintext
10 lines
253 B
Plaintext
// total currency
|
|
_total_currency = 0;
|
|
{
|
|
_part = (configFile >> "CfgMagazines" >> _x);
|
|
_worth = (_part >> "worth");
|
|
if isNumber (_worth) then {
|
|
_total_currency = _total_currency + getNumber(_worth);
|
|
};
|
|
} count (magazines player);
|
|
_total_currency |