mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Fix full toolbelt showing -2 tool slots in Adv. Trade
Correctly shows zero available tool slots when toolbelt, binocular and NVG slots are full now.
This commit is contained in:
@@ -50,7 +50,7 @@ if(_selection == 2) then{ //gear
|
|||||||
|
|
||||||
_allowedBackpacks = 1 - _currentBackpacks;
|
_allowedBackpacks = 1 - _currentBackpacks;
|
||||||
|
|
||||||
_allowedTools = 12;
|
_allowedTools = 14; // 12 toolbelt + 1 Binocular + 1 NVG
|
||||||
|
|
||||||
{
|
{
|
||||||
_parentClasses = [(configFile >> "CfgWeapons" >> _x ),true] call BIS_fnc_returnParents;
|
_parentClasses = [(configFile >> "CfgWeapons" >> _x ),true] call BIS_fnc_returnParents;
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ _returnArray = [0,0,0];
|
|||||||
if(_selection == 2) then{ //gear
|
if(_selection == 2) then{ //gear
|
||||||
_actualMags = {!(_x in MeleeMagazines)} count (magazines player);
|
_actualMags = {!(_x in MeleeMagazines)} count (magazines player);
|
||||||
_allowedMags = 20 - _actualMags;
|
_allowedMags = 20 - _actualMags;
|
||||||
_allowedWeapons = 14 - count(weapons player);
|
// 12 toolbelt + 1 Binoculars + 1 NVG + 1 Pistol + 1 Primary (onBack isn't counted in weapons player)
|
||||||
|
_allowedWeapons = 16 - count(weapons player);
|
||||||
|
|
||||||
_pic = getText (configFile >> 'CfgVehicles' >> (typeOf player) >> 'picture');
|
_pic = getText (configFile >> 'CfgVehicles' >> (typeOf player) >> 'picture');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user