sxcybot

Discord bot for OSRS based channels
git clone git://git.wimdupont.com/sxcybot.git
Log | Files | Refs | README | LICENSE

commit 153f0dc31fb120f2d1e1c1782d49769a672a501f
parent db52689db7bfb2773248da7aaa7c5f25b3feb075
Author: Wim Dupont <wim@wimdupont.com>
Date:   Wed, 24 Aug 2022 13:26:36 +0200

Added Raids 3 to HiScores

Diffstat:
Mpom.xml | 6+++---
Msrc/main/java/com/sxcy/sxcybot/client/HiScoreClient.java | 2+-
Asrc/main/resources/db/migration/V1_8__tomb_of_amascut_boss_added.sql | 9+++++++++
Msrc/test/java/com/sxcy/sxcybot/client/HiScoreClientTest.java | 2+-
4 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml @@ -5,7 +5,7 @@ <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> - <version>2.7.2</version> + <version>2.7.3</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.sxcy</groupId> @@ -58,7 +58,7 @@ <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-mysql</artifactId> - <version>9.0.1</version> + <version>9.1.6</version> </dependency> </dependencies> @@ -91,7 +91,7 @@ <repository> <id>central</id> <name>bintray</name> - <url>http://jcenter.bintray.com</url> + <url>https://jcenter.bintray.com</url> </repository> <repository> <id>dv8tion</id> diff --git a/src/main/java/com/sxcy/sxcybot/client/HiScoreClient.java b/src/main/java/com/sxcy/sxcybot/client/HiScoreClient.java @@ -32,7 +32,7 @@ public class HiScoreClient { private static final int STATS_START = 0; private static final int STATS_END = 23; private static final int BOSS_START = 38; - private static final int BOSS_END = 85; + private static final int BOSS_END = 87; @NonNull private final OsrsHiscoreBossService osrsHiscoreBossService; diff --git a/src/main/resources/db/migration/V1_8__tomb_of_amascut_boss_added.sql b/src/main/resources/db/migration/V1_8__tomb_of_amascut_boss_added.sql @@ -0,0 +1,9 @@ +UPDATE osrs_hiscore_boss SET order_value = order_value+2 WHERE order_value > 77; + +INSERT INTO osrs_hiscore_boss +VALUES +(UUID(),"Tombs of Amascut ", 10, 78, 2); + +INSERT INTO osrs_hiscore_boss +VALUES +(UUID(),"Tombs of Amascut: Expert Mode", 14, 79, 2); diff --git a/src/test/java/com/sxcy/sxcybot/client/HiScoreClientTest.java b/src/test/java/com/sxcy/sxcybot/client/HiScoreClientTest.java @@ -84,7 +84,7 @@ class HiScoreClientTest { .build(), OsrsHiscoreBoss.builder() .name("Wintertodt") - .orderValue(83) + .orderValue(85) .build() );