Browse Source

zone override

birdbane
FatBoy-DOTC 10 months ago
parent
commit
8fcbd8c1e0
  1. 2
      src/engine/db/handlers/dbCityHandler.java
  2. 21
      src/engine/objects/Zone.java

2
src/engine/db/handlers/dbCityHandler.java

@ -32,6 +32,8 @@ public class dbCityHandler extends dbHandlerBase { @@ -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);

21
src/engine/objects/Zone.java

@ -103,7 +103,26 @@ public class Zone extends AbstractGameObject { @@ -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)

Loading…
Cancel
Save