Changed ToL limit
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user