Merge remote-tracking branch 'runelite/master'
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
object ProjectVersions {
|
object ProjectVersions {
|
||||||
const val launcherVersion = "2.2.0"
|
const val launcherVersion = "2.2.0"
|
||||||
const val rlVersion = "1.6.12"
|
const val rlVersion = "1.6.13"
|
||||||
|
|
||||||
const val openosrsVersion = "3.3.1"
|
const val openosrsVersion = "3.3.1"
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,10 @@
|
|||||||
|
|
||||||
package net.runelite.http.api.hiscore;
|
package net.runelite.http.api.hiscore;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
import okhttp3.HttpUrl;
|
import okhttp3.HttpUrl;
|
||||||
|
|
||||||
|
@Getter
|
||||||
public enum HiscoreEndpoint
|
public enum HiscoreEndpoint
|
||||||
{
|
{
|
||||||
NORMAL("Normal", "https://services.runescape.com/m=hiscore_oldschool/index_lite.ws"),
|
NORMAL("Normal", "https://services.runescape.com/m=hiscore_oldschool/index_lite.ws"),
|
||||||
@@ -35,7 +37,8 @@ public enum HiscoreEndpoint
|
|||||||
HARDCORE_IRONMAN("Hardcore Ironman", "https://services.runescape.com/m=hiscore_oldschool_hardcore_ironman/index_lite.ws"),
|
HARDCORE_IRONMAN("Hardcore Ironman", "https://services.runescape.com/m=hiscore_oldschool_hardcore_ironman/index_lite.ws"),
|
||||||
ULTIMATE_IRONMAN("Ultimate Ironman", "https://services.runescape.com/m=hiscore_oldschool_ultimate/index_lite.ws"),
|
ULTIMATE_IRONMAN("Ultimate Ironman", "https://services.runescape.com/m=hiscore_oldschool_ultimate/index_lite.ws"),
|
||||||
DEADMAN("Deadman", "https://services.runescape.com/m=hiscore_oldschool_deadman/index_lite.ws"),
|
DEADMAN("Deadman", "https://services.runescape.com/m=hiscore_oldschool_deadman/index_lite.ws"),
|
||||||
LEAGUE("Twisted League", "https://services.runescape.com/m=hiscore_oldschool_seasonal/index_lite.ws");
|
LEAGUE("Twisted League", "https://services.runescape.com/m=hiscore_oldschool_seasonal/index_lite.ws"),
|
||||||
|
TOURNAMENT("Tournament", "https://services.runescape.com/m=hiscore_oldschool_tournament/index_lite.ws");
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
private final HttpUrl hiscoreURL;
|
private final HttpUrl hiscoreURL;
|
||||||
@@ -45,14 +48,4 @@ public enum HiscoreEndpoint
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
this.hiscoreURL = HttpUrl.parse(hiscoreURL);
|
this.hiscoreURL = HttpUrl.parse(hiscoreURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public HttpUrl getHiscoreURL()
|
|
||||||
{
|
|
||||||
return hiscoreURL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,5 +34,6 @@ public enum WorldType
|
|||||||
LAST_MAN_STANDING,
|
LAST_MAN_STANDING,
|
||||||
TOURNAMENT,
|
TOURNAMENT,
|
||||||
DEADMAN,
|
DEADMAN,
|
||||||
|
DEADMAN_TOURNAMENT,
|
||||||
LEAGUE;
|
LEAGUE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,10 @@ public enum WorldType
|
|||||||
* Tournament world type.
|
* Tournament world type.
|
||||||
*/
|
*/
|
||||||
TOURNAMENT(1 << 25),
|
TOURNAMENT(1 << 25),
|
||||||
|
/**
|
||||||
|
* Deadman Tournament world type.
|
||||||
|
*/
|
||||||
|
DEADMAN_TOURNAMENT(1 << 26),
|
||||||
/**
|
/**
|
||||||
* Deadman world type.
|
* Deadman world type.
|
||||||
*/
|
*/
|
||||||
@@ -77,7 +81,7 @@ public enum WorldType
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final EnumSet<WorldType> PVP_WORLD_TYPES = EnumSet.of(
|
private static final EnumSet<WorldType> PVP_WORLD_TYPES = EnumSet.of(
|
||||||
DEADMAN,
|
DEADMAN, // dmmt worlds are also flaged as DEADMAN
|
||||||
PVP
|
PVP
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user