sxcybot

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

commit 167e8215738762c7f9a919d1a664c2cb1e840a91
parent c9a81ceaa15bb91a7370bb7dbee16e7e3d4a14dd
Author: Wim Dupont <wim@wimdupont.com>
Date:   Thu,  1 Feb 2024 13:13:10 +0100

scurrius boss added

Diffstat:
Msrc/main/java/com/wimdupont/sxcybot/client/HiScoreClient.java | 2+-
Asrc/main/resources/db/migration/V1_17__scurrius_boss_added.sql | 5+++++
Msrc/test/java/com/wimdupont/sxcybot/client/HiScoreClientTest.java | 2+-
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/wimdupont/sxcybot/client/HiScoreClient.java b/src/main/java/com/wimdupont/sxcybot/client/HiScoreClient.java @@ -31,7 +31,7 @@ public class HiScoreClient { private static final int STATS_START = 0; private static final int STATS_END = 23; private static final int BOSS_START = 41; - private static final int BOSS_END = 98; + private static final int BOSS_END = 99; private final OsrsHiscoreBossService osrsHiscoreBossService; private final OsrsHiscoreStatService osrsHiscoreStatService; diff --git a/src/main/resources/db/migration/V1_17__scurrius_boss_added.sql b/src/main/resources/db/migration/V1_17__scurrius_boss_added.sql @@ -0,0 +1,5 @@ +UPDATE osrs_hiscore_boss SET order_value = order_value+1 WHERE order_value > 77; + +INSERT INTO osrs_hiscore_boss +VALUES +(UUID(),"Scurrius", 1, 78, 1); diff --git a/src/test/java/com/wimdupont/sxcybot/client/HiScoreClientTest.java b/src/test/java/com/wimdupont/sxcybot/client/HiScoreClientTest.java @@ -84,7 +84,7 @@ class HiScoreClientTest { .build(), OsrsHiscoreBoss.Builder.newBuilder() .name("Wintertodt") - .orderValue(96) + .orderValue(97) .build() );