Tweak chase crit perception

This commit is contained in:
2023-04-30 23:29:31 +01:00
parent 5180e9a995
commit ba12a73842
6 changed files with 25 additions and 11 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ doFloatFloat ff x = case ff of
FloatLessCheck y
| x > y -> 0
| otherwise -> 1
FloatDistLinearMaxMin maxd a b
FloatDistLinearNearFar maxd a b
| x > maxd -> 0
| otherwise -> (a * (maxd - x) + b * (x - maxd)) / maxd
FloatAbsCheckGreaterLess a y1 y2