sxcybot

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

commit 6cca642e1a455c11c5415fbbe7918df26ed35b06
parent 613f55e332e707e3b208758ff5d454555b77fd3f
Author: Wim Dupont <wim@wimdupont.com>
Date:   Thu, 14 Jul 2022 19:51:46 +0200

arena added to hiscore fix

Diffstat:
Msrc/main/java/com/sxcy/sxcybot/client/HiScoreClient.java | 4++--
Asrc/main/resources/db/migration/V1_7__arena_added_fix_bosses.sql | 1+
Msrc/test/java/com/sxcy/sxcybot/client/HiScoreClientTest.java | 4++--
3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/sxcy/sxcybot/client/HiScoreClient.java b/src/main/java/com/sxcy/sxcybot/client/HiScoreClient.java @@ -31,8 +31,8 @@ public class HiScoreClient { private static final int STATS_START = 0; private static final int STATS_END = 23; - private static final int BOSS_START = 37; - private static final int BOSS_END = 84; + private static final int BOSS_START = 38; + private static final int BOSS_END = 85; @NonNull private final OsrsHiscoreBossService osrsHiscoreBossService; diff --git a/src/main/resources/db/migration/V1_7__arena_added_fix_bosses.sql b/src/main/resources/db/migration/V1_7__arena_added_fix_bosses.sql @@ -0,0 +1 @@ +UPDATE osrs_hiscore_boss SET order_value = order_value+1 WHERE order_value > 1; diff --git a/src/test/java/com/sxcy/sxcybot/client/HiScoreClientTest.java b/src/test/java/com/sxcy/sxcybot/client/HiScoreClientTest.java @@ -80,11 +80,11 @@ class HiScoreClientTest { String playerName = "Zxxy"; List<OsrsHiscoreBoss> hiscoreBosses = List.of(OsrsHiscoreBoss.builder() .name("KBD") - .orderValue(59) + .orderValue(60) .build(), OsrsHiscoreBoss.builder() .name("Wintertodt") - .orderValue(82) + .orderValue(83) .build() );