From 320ea7e81c889f3cabfe8ff9c8259280e58feb79 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 22 Feb 2024 21:19:35 -0600 Subject: [PATCH] planting on OB and Mael --- src/engine/objects/Realm.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Realm.java b/src/engine/objects/Realm.java index e97a4533..43c103c5 100644 --- a/src/engine/objects/Realm.java +++ b/src/engine/objects/Realm.java @@ -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() {