mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Replace forEach with Count
Use count where you do not need _forEachIndex variable, it's quicker than forEach.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Description:
|
||||
Checks whether the player has the required tools equipped or not
|
||||
and displays a message if a tool is missing from the tool belt.
|
||||
Checks whether the player has the required tools equipped || not
|
||||
&& displays a message if a tool is missing from the tool belt.
|
||||
|
||||
Parameter(s):
|
||||
_this: <array> list of tool names the player is required to have
|
||||
@@ -22,5 +22,5 @@ _hasTools = true;
|
||||
_missing = getText (configFile >> "cfgWeapons" >> _x >> "displayName");
|
||||
cutText [format[(localize "STR_EPOCH_ACTIONS_13"), _missing] , "PLAIN DOWN"];
|
||||
};
|
||||
} forEach _tools;
|
||||
} count _tools;
|
||||
_hasTools
|
||||
|
||||
Reference in New Issue
Block a user