planting on OB and Mael

This commit is contained in:
2024-02-22 21:19:35 -06:00
parent 05eb8cd961
commit 320ea7e81c
+10 -3
View File
@@ -76,10 +76,16 @@ public class Realm {
this.mapG = (float) (mapColor.getGreen() * 0.00392156863);
this.mapB = (float) (mapColor.getBlue() * 0.00392156863);
this.mapA = 1;
this.canBeClaimed = rs.getBoolean("canBeClaimed");
this.canPlaceCities = rs.getBoolean("canPlaceCities");
this.numCities = rs.getInt("numCities");
this.realmName = rs.getString("realmName");
if(this.realmName.toLowerCase().equals("oblivion") || this.realmName.toLowerCase().equals("maelstrom")){
this.canBeClaimed = true;
this.canPlaceCities = true;
this.numCities = 5;
}else {
this.canBeClaimed = rs.getBoolean("canBeClaimed");
this.canPlaceCities = rs.getBoolean("canPlaceCities");
this.numCities = rs.getInt("numCities");
}
this.rulingCityUUID = rs.getInt("rulingCityUID");
this.charterType = rs.getInt("charterType");
@@ -98,6 +104,7 @@ public class Realm {
this.locY = rs.getInt("locY");
this.realmID = rs.getInt("realmID");
this.hash = rs.getString("hash");
}
public static void configureAllRealms() {