Changed ToL limit

This commit is contained in:
2024-09-19 13:36:36 -04:00
parent 96387aa4f4
commit d193a12554
+7 -4
View File
@@ -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) {