update wilderness region

This commit is contained in:
ThatGamerBlue
2021-05-09 04:54:55 +01:00
parent 26eb0d4533
commit 36e51cfd1c
2 changed files with 10 additions and 47 deletions

View File

@@ -55,7 +55,7 @@ public class PvPUtil
);
private static final Cuboid MAIN_WILDERNESS_CUBOID = new Cuboid(2944, 3525, 0, 3391, 4351, 3);
private static final Cuboid GOD_WARS_WILDERNESS_CUBOID = new Cuboid(3008, 10112, 0, 3071, 10175, 3);
private static final Cuboid WILDERNESS_UNDERGROUND_CUBOID = new Cuboid(2944, 9920, 0, 3391, 10879, 3);
private static final Cuboid WILDERNESS_UNDERGROUND_CUBOID = new Cuboid(2944, 9920, 0, 3455, 10879, 3);
/**
* Gets the wilderness level based on a world point
@@ -66,6 +66,13 @@ public class PvPUtil
*/
public static int getWildernessLevelFrom(WorldPoint point)
{
int regionID = point.getRegionID();
if (regionID == 12700 /* soul wars underground ferox */ ||
regionID == 12187 /* falador party room museum */)
{
return 0;
}
if (MAIN_WILDERNESS_CUBOID.contains(point))
{
if (NOT_WILDERNESS_BLACK_KNIGHTS.contains(point.getX(), point.getY()))