mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Prevent MeleeMagazines being counted by BIS_fnc_inv
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
private ["_selection","_return","_toBuyWeaps","_toBuyMags","_toBuyBags","_toolsToBuy","_sidearmToBuy","_primaryToBuy","_currentPrimarys"
|
||||
,"_currentSecondarys","_currentSec","_currentPrim","_currentTool","_p","_s","_b","_check0","_check1","_check2","_check3","_check4","_mags","_weaps","_bags"
|
||||
,"_normalBags","_normalMags","_normalWeaps","_allowedMags","_allowedPrimary","_allowedTools","_allowedSidearm","_allowedWeapons","_allowedBackpacks"
|
||||
,"_totalSpace","_totalNewSpace","_counter","_parentClasses","_alreadyInBackpack","_kinds","_kinds2","_kinds3","_ammmounts","_ammmounts2","_ammmounts3"
|
||||
,"_totalSpace","_totalNewSpace","_counter","_parentClasses","_alreadyInBackpack","_kinds","_kinds2","_kinds3","_ammmounts","_ammmounts2","_ammmounts3",
|
||||
"_actualMags"
|
||||
];
|
||||
_selection = Z_SellingFrom;
|
||||
_return = false;
|
||||
@@ -19,7 +20,8 @@ if (_vehiclesToBuy > 0) then {
|
||||
};
|
||||
|
||||
if(_selection == 2) then{ //gear
|
||||
_allowedMags = 20 - count(magazines player);
|
||||
_actualMags = {!(_x in MeleeMagazines)} count (magazines player);
|
||||
_allowedMags = 20 - _actualMags;
|
||||
|
||||
_currentPrimarys = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user