mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 17:39:18 +03:00
0.971
+ added color coding of backpack when selling fixes #112 + fixed silver to gold conversion rates on bulk selling weapons and backpacks. Fixes #114 + add more missing weights for R3F realism. Fixes #110 + added random direction to purchased vehicles makes it harder to get duplicate uid not fixed 100%
This commit is contained in:
@@ -91,7 +91,15 @@ diag_log format["DEBUG Buy: %1", dayzTraderMenuResult];
|
||||
|
||||
_count = 0;
|
||||
if(_type == "CfgVehicles") then {
|
||||
_count = {(typeOf _x) == _name} count (nearestObjects [player, [_name], 10]);
|
||||
if (_afile == "trade_backpacks") then {
|
||||
_bag = unitBackpack player;
|
||||
_bagclass = typeOf _bag;
|
||||
if(_name == _bagclass) then {
|
||||
_count = 1;
|
||||
};
|
||||
} else {
|
||||
_count = {(typeOf _x) == _name} count (nearestObjects [player, [_name], 10]);
|
||||
}
|
||||
};
|
||||
if(_type == "CfgMagazines") then {
|
||||
_count = {_x == _name} count magazines player;
|
||||
|
||||
Reference in New Issue
Block a user