fixes even more crap (replay stuff mostly)

This commit is contained in:
Kade M
2021-06-20 17:59:39 -07:00
parent 98e96e4348
commit 40601171ab
4 changed files with 81 additions and 26 deletions

View File

@@ -120,19 +120,19 @@ class Ratings
public static function checkRating(ms:Float, ts:Float)
{
var rating = "miss";
if (ms < 166 * ts && ms > 135 * ts)
if (ms <= 166 * ts && ms >= 135 * ts)
rating = "shit";
if (ms > -166 * ts && ms < -135 * ts)
if (ms >= -166 * ts && ms <= -135 * ts)
rating = "shit";
if (ms < 135 * ts && ms > 90 * ts)
if (ms <= 135 * ts && ms >= 90 * ts)
rating = "bad";
if (ms > -135 * ts && ms < -90 * ts)
if (ms >= -135 * ts && ms <= -90 * ts)
rating = "bad";
if (ms < 90 * ts && ms > 45 * ts)
if (ms <= 90 * ts && ms >= 45 * ts)
rating = "good";
if (ms > -90 * ts && ms < -45 * ts)
if (ms >= -90 * ts && ms <= -45 * ts)
rating = "good";
if (ms < 45 * ts && ms > -45 * ts)
if (ms <= 45 * ts && ms >= -45 * ts)
rating = "sick";
return rating;
}