Skip to content

Commit 852b022

Browse files
committed
Fixed - Maybe? The Arsenal filter from being inconsistent
What ================= Fixed - Eden module: Replaced the standard function that the Zeus module uses normally, with an ACE function that pretends we just stuck the whitelist into the object in its attributes section. Issue ID: #94
1 parent 45dfc8b commit 852b022

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

addons/core/functions/eden_modules/fn_barracksModule.sqf

+10-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,16 @@ if (!isServer) exitWith {
2929
};
3030

3131
if (_logic getVariable ["HasArsenal", false]) then {
32-
[_logic getVariable ["ArsenalFilter", ""], _objects] call bnb_f_core_fnc_arsenal;
32+
// [_logic getVariable ["ArsenalFilter", ""], _objects] call bnb_f_core_fnc_arsenal;
33+
private _filter = [_logic getVariable ["ArsenalFilter", ""]] call bnb_f_core_fnc_getArsenalFilter;
34+
if (_filter isEqualTo true) then {
35+
_filter = [];
36+
};
37+
38+
{
39+
[_x, [_filter, 0]] call ace_arsenal_fnc_attributeInit;
40+
[format["Added %1 filtered arsenal to %2", _filter, _x], "core\functions\fn_arsenal.sqf"] call bnb_e_core_fnc_log;
41+
} foreach _objects;
3342
};
3443

3544
if (_logic getVariable ["HasFullHeal", false]) then {

0 commit comments

Comments
 (0)