Implemented "relax" mod.
Also added a few checks for related "autopilot" mod (probably incomplete). Fixed the wrong default background being shown in the ranking screen. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -195,13 +195,13 @@ public class Spinner implements HitObject {
|
||||
}
|
||||
|
||||
// game button is released
|
||||
if (isSpinning && !Utils.isGameKeyPressed())
|
||||
if (isSpinning && !(Utils.isGameKeyPressed() || GameMod.RELAX.isActive()))
|
||||
isSpinning = false;
|
||||
|
||||
float angle = (float) Math.atan2(mouseY - (height / 2), mouseX - (width / 2));
|
||||
|
||||
// set initial angle to current mouse position to skip first click
|
||||
if (!isSpinning && Utils.isGameKeyPressed()) {
|
||||
if (!isSpinning && (Utils.isGameKeyPressed() || GameMod.RELAX.isActive())) {
|
||||
lastAngle = angle;
|
||||
isSpinning = true;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user