This commit is contained in:
ThatGamerBlue
2022-06-23 20:14:14 +01:00
parent 21c2ab36e9
commit c7eaf60f03
3 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ public class GameHandler implements KeyListener {
ateApple = true;
score++;
SnakeGame.currentRefreshInterval = Math.max(50, DEFAULT_REFRESH_INTERVAL - score);
if (score == 40) {
if (score == 15) {
game.stop();
}
}

View File

@@ -32,7 +32,7 @@ public class SnakeGame {
public void stop() throws Exception {
int option = JOptionPane.showConfirmDialog(null,
"You scored 40! Press Yes to launch OpenOSRS, press No to keep playing snake.",
"You scored 15! Press Yes to launch OpenOSRS, press No to keep playing snake.",
"OpenOSRS Snake", JOptionPane.YES_NO_OPTION);
if (option == JOptionPane.YES_OPTION) {
running = false;

View File

@@ -185,7 +185,7 @@ public class RuneLite
if (!ArrayUtils.contains(args, BYPASS_ARG))
{
JOptionPane.showMessageDialog(null,
String.format("If you want to actually use the client despite the risks add\n%s\nto your launch arguments.\n\nOr score 40 and the client opens anyway.\nI'm not your dad.",
String.format("If you want to actually use the client despite the risks add\n%s\nto your launch arguments.\n\nOr score 15 and the client opens anyway.\nI'm not your dad.",
"unknown".equals(RuneLiteProperties.getLauncherVersion()) ? BYPASS_ARG : ("--clientargs=\"" + BYPASS_ARG + "\"")),
"OpenOSRS",
JOptionPane.INFORMATION_MESSAGE);