mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-03 17:21:36 +03:00
1 parent
79bbc2c5a4
commit
4fa36dfd94
2 files changed
+3
No files matched your search
@@ -67,6 +67,8 @@ _totalPrice = 0;
|
||||
_pic = "";
|
||||
_text = "";
|
||||
_type = getText(missionConfigFile >> "CfgTraderCategory" >> _cat >> _y >> "type");
|
||||
// Make sure type matches for items that have the same weapon and magazine classname (i.e. PipeBomb, Mine, Javelin, etc.)
|
||||
if ((_type == "trade_items" && !(_y in _mags)) or (_type == "trade_weapons" && !(_y in _weaps))) exitWith {};
|
||||
_sell = getArray(missionConfigFile >> "CfgTraderCategory" >> _cat >> _y >> "sell");
|
||||
_buy = getArray(missionConfigFile >> "CfgTraderCategory" >> _cat >> _y >> "buy");
|
||||
if (_swap) then {_y = "ItemBloodbag"};
|
||||
|
||||
Reference in new issue
Block a user