diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 7a2a4b56..c3d38423 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -290,7 +290,9 @@ public class Mine extends AbstractGameObject { if (treeRank < 1) return false; - if (guildUnderMineLimit(playerGuild.getNation(), treeRank) == false) { + // We check the limit against only the player guild right now + // each guild (even within a nation) is limited by the nation tree + if (guildUnderMineLimit(playerGuild, treeRank) == false) { ErrorPopupMsg.sendErrorMsg(playerCharacter, "Your nation cannot support another mine."); return false; } @@ -304,10 +306,11 @@ public class Mine extends AbstractGameObject { mineCnt += Mine.getMinesForGuild(playerGuild.getObjectUUID()).size(); - for (Guild guild : playerGuild.getSubGuildList()) - mineCnt += Mine.getMinesForGuild(guild.getObjectUUID()).size(); + // Only count mines for a specific guild + //for (Guild guild : playerGuild.getSubGuildList()) + // mineCnt += Mine.getMinesForGuild(guild.getObjectUUID()).size(); - return mineCnt <= tolRank; + return mineCnt <= (tolRank * 2); } public boolean changeProductionType(Resource resource) {