175 {
176 float highestSensitivity = 0.0;
177 float sensitivity = 0.0;
179 ECatchingBaitCategories baitCategoryType;
180
181 for (int i = 0; i < count; i++)
182 {
184 if (excludedTypes && excludedTypes.Find(baitCategoryType) != -1)
185 continue;
186
188 if (sensitivity < 0)
189 {
192 return false;
193 }
194
195 highestSensitivity =
Math.
Max(highestSensitivity,sensitivity);
196 }
197
198 #ifdef DEVELOPER
200 {
201 if (count == 0)
202 Print(
"dbgTrapz | " + yItem +
" compatible due to unspecified bait compatibility!");
203 else if (highestSensitivity > 0.0)
204 Print(
"dbgTrapz | " + yItem +
" compatible with highestSensitivity: " + highestSensitivity);
205 }
206 #endif
207
208 return count == 0 || highestSensitivity > 0.0;
209 }
ref array< YieldItemBase > m_ExcludedItems
ref map< int, ref BaitData > m_BaitCompatibilityMap
float GetBaitTypeSensitivity(ECatchingBaitCategories type)
proto void Print(void var)
Prints content of variable to console/log.
static proto float Max(float x, float y)
Returns bigger of two given values.
proto native bool IsCLIParam(string param)
Returns if command line argument is present.