commit b304949bb1896ff9c66f66edd25a1a8f8dbfe59b parent 1998fe81d02f535af5895d068333bbef99b25427 Author: Wim Dupont <wim@wimdupont.com> Date: Fri, 26 May 2023 13:46:10 +0200 hiscore bh legacy fix Diffstat:
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/wimdupont/sxcybot/client/HiScoreClient.java b/src/main/java/com/wimdupont/sxcybot/client/HiScoreClient.java @@ -30,8 +30,8 @@ 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 = 91; + private static final int BOSS_START = 40; + private static final int BOSS_END = 93; private final OsrsHiscoreBossService osrsHiscoreBossService; private final OsrsHiscoreStatService osrsHiscoreStatService; diff --git a/src/main/resources/db/migration/V1_14__BH_legacy_hiscores_fix.sql b/src/main/resources/db/migration/V1_14__BH_legacy_hiscores_fix.sql @@ -0,0 +1 @@ +UPDATE osrs_hiscore_boss SET order_value = order_value+2; diff --git a/src/test/java/com/wimdupont/sxcybot/client/HiScoreClientTest.java b/src/test/java/com/wimdupont/sxcybot/client/HiScoreClientTest.java @@ -80,11 +80,11 @@ class HiScoreClientTest { String playerName = "Zxxy"; List<OsrsHiscoreBoss> hiscoreBosses = List.of(OsrsHiscoreBoss.Builder.newBuilder() .name("KBD") - .orderValue(62) + .orderValue(64) .build(), OsrsHiscoreBoss.Builder.newBuilder() .name("Wintertodt") - .orderValue(89) + .orderValue(91) .build() );