Browse Source

planting on OB and Mael

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
320ea7e81c
  1. 13
      src/engine/objects/Realm.java

13
src/engine/objects/Realm.java

@ -76,10 +76,16 @@ public class Realm {
this.mapG = (float) (mapColor.getGreen() * 0.00392156863); this.mapG = (float) (mapColor.getGreen() * 0.00392156863);
this.mapB = (float) (mapColor.getBlue() * 0.00392156863); this.mapB = (float) (mapColor.getBlue() * 0.00392156863);
this.mapA = 1; this.mapA = 1;
this.canBeClaimed = rs.getBoolean("canBeClaimed");
this.canPlaceCities = rs.getBoolean("canPlaceCities");
this.numCities = rs.getInt("numCities");
this.realmName = rs.getString("realmName"); 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.rulingCityUUID = rs.getInt("rulingCityUID");
this.charterType = rs.getInt("charterType"); this.charterType = rs.getInt("charterType");
@ -98,6 +104,7 @@ public class Realm {
this.locY = rs.getInt("locY"); this.locY = rs.getInt("locY");
this.realmID = rs.getInt("realmID"); this.realmID = rs.getInt("realmID");
this.hash = rs.getString("hash"); this.hash = rs.getString("hash");
} }
public static void configureAllRealms() { public static void configureAllRealms() {

Loading…
Cancel
Save