|
|
@ -559,17 +559,12 @@ public class Guild extends AbstractWorldObject { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean canSubAGuild(Guild toSub, Guild nation){ |
|
|
|
public boolean canSubAGuild(Guild toSub){ |
|
|
|
|
|
|
|
|
|
|
|
boolean canSub; |
|
|
|
boolean canSub; |
|
|
|
|
|
|
|
|
|
|
|
if (this.equals(toSub)) |
|
|
|
if (this.equals(toSub)) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
City nationCap = City.getCity(nation.cityUUID); |
|
|
|
|
|
|
|
if (nation.getSubGuildList().size() >= nationCap.getRank()) { |
|
|
|
|
|
|
|
canSub = false; |
|
|
|
|
|
|
|
return canSub; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
switch(this.guildState) { |
|
|
|
switch(this.guildState) { |
|
|
|
case Nation: |
|
|
|
case Nation: |
|
|
|
case Sovereign: |
|
|
|
case Sovereign: |
|
|
@ -587,7 +582,10 @@ public class Guild extends AbstractWorldObject { |
|
|
|
default: |
|
|
|
default: |
|
|
|
canSub = false; |
|
|
|
canSub = false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
City nationCap = City.getCity(nation.cityUUID); |
|
|
|
|
|
|
|
if (nation.getSubGuildList().size() >= nationCap.getRank()) { |
|
|
|
|
|
|
|
canSub = false; |
|
|
|
|
|
|
|
} |
|
|
|
return canSub; |
|
|
|
return canSub; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|