Skip to content

Commit

Permalink
Removed excessive brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapawingo committed May 23, 2024
1 parent 9b5c390 commit d215832
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/components/kosherAI/functions/fn_setLoadout.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ for "_i" from 0 to round (random 3) do {
};

/* Add Explosives */
private _compatibleMagazines = compatibleMagazines primaryWeapon _unit + (compatibleMagazines handgunWeapon _unit + (compatibleMagazines secondaryWeapon _unit));
private _compatibleMagazines = compatibleMagazines primaryWeapon _unit + (compatibleMagazines handgunWeapon _unit + compatibleMagazines secondaryWeapon _unit);
private _explosives = _magazines select { !(_x in _compatibleMagazines) };
for "_i" from 0 to round (random 2) do {
_unit addMagazineGlobal selectRandom _explosives;
};

/* Add medical equipment */
if (_role isEqualTo "MED") then {
for "_i" from 0 to (random 30) do {
_unit addItem (selectRandom (_whitelist select 8));
for "_i" from 0 to random 30 do {
_unit addItem selectRandom (_whitelist select 8);
}
} else {
_unit addItem "Medikit"; _unit addItem "Medikit";
Expand Down

0 comments on commit d215832

Please sign in to comment.