http-api: add tob hm hiscores

This commit is contained in:
Adam
2021-06-03 08:57:11 -04:00
parent 614649281b
commit 4b05699d6e
4 changed files with 12 additions and 5 deletions

View File

@@ -102,6 +102,7 @@ public class HiscoreResult
private Skill gauntlet; private Skill gauntlet;
private Skill corruptedGauntlet; private Skill corruptedGauntlet;
private Skill theatreOfBlood; private Skill theatreOfBlood;
private Skill theatreOfBloodHardMode;
private Skill thermonuclearSmokeDevil; private Skill thermonuclearSmokeDevil;
private Skill tzKalZuk; private Skill tzKalZuk;
private Skill tzTokJad; private Skill tzTokJad;
@@ -260,6 +261,8 @@ public class HiscoreResult
return corruptedGauntlet; return corruptedGauntlet;
case THEATRE_OF_BLOOD: case THEATRE_OF_BLOOD:
return theatreOfBlood; return theatreOfBlood;
case THEATRE_OF_BLOOD_HARD_MODE:
return theatreOfBloodHardMode;
case THERMONUCLEAR_SMOKE_DEVIL: case THERMONUCLEAR_SMOKE_DEVIL:
return thermonuclearSmokeDevil; return thermonuclearSmokeDevil;
case TZKAL_ZUK: case TZKAL_ZUK:

View File

@@ -123,13 +123,14 @@ class HiscoreResultBuilder
hiscoreResult.setSarachnis(skills.get(index++)); hiscoreResult.setSarachnis(skills.get(index++));
hiscoreResult.setScorpia(skills.get(index++)); hiscoreResult.setScorpia(skills.get(index++));
hiscoreResult.setSkotizo(skills.get(index++)); hiscoreResult.setSkotizo(skills.get(index++));
if (skills.size() >= 81) hiscoreResult.setTempoross(skills.get(index++));
{
hiscoreResult.setTempoross(skills.get(index++));
}
hiscoreResult.setGauntlet(skills.get(index++)); hiscoreResult.setGauntlet(skills.get(index++));
hiscoreResult.setCorruptedGauntlet(skills.get(index++)); hiscoreResult.setCorruptedGauntlet(skills.get(index++));
hiscoreResult.setTheatreOfBlood(skills.get(index++)); hiscoreResult.setTheatreOfBlood(skills.get(index++));
if (skills.size() >= 82)
{
hiscoreResult.setTheatreOfBloodHardMode(skills.get(index++));
}
hiscoreResult.setThermonuclearSmokeDevil(skills.get(index++)); hiscoreResult.setThermonuclearSmokeDevil(skills.get(index++));
hiscoreResult.setTzKalZuk(skills.get(index++)); hiscoreResult.setTzKalZuk(skills.get(index++));
hiscoreResult.setTzTokJad(skills.get(index++)); hiscoreResult.setTzTokJad(skills.get(index++));

View File

@@ -106,6 +106,7 @@ public enum HiscoreSkill
THE_GAUNTLET("The Gauntlet", BOSS), THE_GAUNTLET("The Gauntlet", BOSS),
THE_CORRUPTED_GAUNTLET("The Corrupted Gauntlet", BOSS), THE_CORRUPTED_GAUNTLET("The Corrupted Gauntlet", BOSS),
THEATRE_OF_BLOOD("Theatre of Blood", BOSS), THEATRE_OF_BLOOD("Theatre of Blood", BOSS),
THEATRE_OF_BLOOD_HARD_MODE("Theatre of Blood: Hard Mode", BOSS),
THERMONUCLEAR_SMOKE_DEVIL("Thermonuclear Smoke Devil", BOSS), THERMONUCLEAR_SMOKE_DEVIL("Thermonuclear Smoke Devil", BOSS),
TZKAL_ZUK("TzKal-Zuk", BOSS), TZKAL_ZUK("TzKal-Zuk", BOSS),
TZTOK_JAD("TzTok-Jad", BOSS), TZTOK_JAD("TzTok-Jad", BOSS),

View File

@@ -107,7 +107,8 @@ public class HiscoreServiceTest
+ "1234,5678\n" // Tempoross + "1234,5678\n" // Tempoross
+ "-1,-1\n" + "-1,-1\n"
+ "-1,-1\n" + "-1,-1\n"
+ "-1,-1\n" + "-1,-1\n" // TOB
+ "42,42\n" // TOB: Hard Mode
+ "29347,130\n" + "29347,130\n"
+ "723,4\n" + "723,4\n"
+ "1264,38\n" + "1264,38\n"
@@ -150,6 +151,7 @@ public class HiscoreServiceTest
Assert.assertEquals(37, result.getAbyssalSire().getLevel()); Assert.assertEquals(37, result.getAbyssalSire().getLevel());
Assert.assertEquals(92357, result.getCallisto().getRank()); Assert.assertEquals(92357, result.getCallisto().getRank());
Assert.assertEquals(5678, result.getTempoross().getLevel()); Assert.assertEquals(5678, result.getTempoross().getLevel());
Assert.assertEquals(42, result.getTheatreOfBloodHardMode().getLevel());
Assert.assertEquals(5847, result.getZulrah().getLevel()); Assert.assertEquals(5847, result.getZulrah().getLevel());
} }