|
|
@ -5,6 +5,10 @@ import engine.objects.Guild; |
|
|
|
public class ZergManager { |
|
|
|
public class ZergManager { |
|
|
|
|
|
|
|
|
|
|
|
public static int getBaneCap(Guild guild) { |
|
|
|
public static int getBaneCap(Guild guild) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(guild.getOwnedCity() == null || guild.getOwnedCity().getTOL() == null) |
|
|
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
|
|
int cityRank = guild.getOwnedCity().getTOL().getRank(); |
|
|
|
int cityRank = guild.getOwnedCity().getTOL().getRank(); |
|
|
|
return (cityRank == 8) ? 20 : ((guild.getNation().getSubGuildList().size() + 1 <= 4) ? 10 : 20); |
|
|
|
return (cityRank == 8) ? 20 : ((guild.getNation().getSubGuildList().size() + 1 <= 4) ? 10 : 20); |
|
|
|
} |
|
|
|
} |
|
|
|