From c7eaf60f03f0c9a7169aaf6f7f2e30a07a5c3978 Mon Sep 17 00:00:00 2001 From: ThatGamerBlue Date: Thu, 23 Jun 2022 20:14:14 +0100 Subject: [PATCH] fifteen --- .../src/main/java/com/thatgamerblue/snake/GameHandler.java | 2 +- .../src/main/java/com/thatgamerblue/snake/SnakeGame.java | 2 +- runelite-client/src/main/java/net/runelite/client/RuneLite.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runelite-client/src/main/java/com/thatgamerblue/snake/GameHandler.java b/runelite-client/src/main/java/com/thatgamerblue/snake/GameHandler.java index ff1a32fdc7..6715f05c37 100644 --- a/runelite-client/src/main/java/com/thatgamerblue/snake/GameHandler.java +++ b/runelite-client/src/main/java/com/thatgamerblue/snake/GameHandler.java @@ -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(); } } diff --git a/runelite-client/src/main/java/com/thatgamerblue/snake/SnakeGame.java b/runelite-client/src/main/java/com/thatgamerblue/snake/SnakeGame.java index 013ec2a858..cac09dfcd2 100644 --- a/runelite-client/src/main/java/com/thatgamerblue/snake/SnakeGame.java +++ b/runelite-client/src/main/java/com/thatgamerblue/snake/SnakeGame.java @@ -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; diff --git a/runelite-client/src/main/java/net/runelite/client/RuneLite.java b/runelite-client/src/main/java/net/runelite/client/RuneLite.java index 6892d5bd13..4604f6582e 100644 --- a/runelite-client/src/main/java/net/runelite/client/RuneLite.java +++ b/runelite-client/src/main/java/net/runelite/client/RuneLite.java @@ -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);