Skip to content

Commit

Permalink
Update fnc_testAllLoadouts.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Aug 12, 2024
1 parent e433175 commit 705430c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/missionMaking/functions/fnc_testAllLoadouts.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private _getArrayAndCheck = {
private _configLaunchers = ["launchers", [_cfgWeap]] call _getArrayAndCheck;
private _configHandguns = ["handguns", [_cfgWeap]] call _getArrayAndCheck;
private _configMagazines = ["magazines", [_cfgWeap, _cfgMag]] call _getArrayAndCheck;
private _configItems = ["items", [_cfgWeap]] call _getArrayAndCheck;
private _configItems = ["items", [_cfgWeap, _cfgMag]] call _getArrayAndCheck;
private _configLinkedItems = ["linkedItems", [_cfgWeap]] call _getArrayAndCheck;
private _configAttachments = ["attachments", [_cfgWeap]] call _getArrayAndCheck;
private _configSecondaryAttachments = ["secondaryAttachments", [_cfgWeap]] call _getArrayAndCheck;
Expand All @@ -113,7 +113,7 @@ private _getArrayAndCheck = {

// Check we haves some ammo (besides launchers)
if (_checkHaveSomeAmmo && {_weaponIndex != 1} && {_weaponMags isNotEqualTo []} && {(_configMagazines arrayIntersect _weaponMags) isEqualTo []}) then {
[format ["%1 has no magazines %2 from %3", _weapon, _configMagazines]] call _fnc_error;
[format ["%1 has no magazines %2", _weapon, _configMagazines]] call _fnc_error;
};

// Check we use potato mags if they exist for the weapon
Expand Down

0 comments on commit 705430c

Please sign in to comment.