Browse Source

Changed ToL limit

NovaTest
kevin 2 months ago
parent
commit
d193a12554
  1. 11
      src/engine/objects/Mine.java

11
src/engine/objects/Mine.java

@ -290,7 +290,9 @@ public class Mine extends AbstractGameObject { @@ -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 { @@ -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) {

Loading…
Cancel
Save