zone override

This commit is contained in:
2024-02-24 21:01:33 -06:00
parent 8e4aa20404
commit 8fcbd8c1e0
2 changed files with 22 additions and 1 deletions
@@ -32,6 +32,8 @@ public class dbCityHandler extends dbHandlerBase {
String type = rs.getString("type");
switch (type) {
case "zone":
if(rs.getInt("isPlayerCity") != 0 && Zone.skipZone(rs.getString("Name")))
break;
Zone zone = new Zone(rs);
DbManager.addToCache(zone);
list.add(zone);
+20 -1
View File
@@ -103,7 +103,26 @@ public class Zone extends AbstractGameObject {
}
public static boolean skipZone(String name){
switch(name){
case "Kralgar Holm":
case "Doomhorn Skrae":
case "Ymur's Crown":
case "Ecklund Wilds":
case "Ragnir Holm":
case "Aurrochs Skrae":
case "Hregerend Wildlands":
case "The Blood Sands":
case "Vale of Nar Addad":
case "Kharsoom":
case "Leth'khalivar Desert":
case "Thollok Marsh":
case "The Black Bog":
case "sevaath Mere":
return true;
}
return false;
}
public static void serializeForClientMsg(Zone zone, ByteBufferWriter writer) {
if (zone.loadNum == 0 && zone.playerCityID == 0)