forked from MagicBane/Server
boxed character fix, safezone equipment damage fix, trade fix, creation experience fix, sub guild limits removed
This commit is contained in:
@@ -730,32 +730,29 @@ public class Guild extends AbstractWorldObject {
|
||||
|
||||
public boolean canSubAGuild(Guild toSub) {
|
||||
|
||||
boolean canSub;
|
||||
|
||||
boolean canSubToNation;
|
||||
boolean canAcceptSub;
|
||||
if (this.equals(toSub))
|
||||
return false;
|
||||
switch (this.guildState) {
|
||||
case Nation:
|
||||
case Sovereign:
|
||||
canSub = true;
|
||||
canAcceptSub = true;
|
||||
break;
|
||||
default:
|
||||
canSub = false;
|
||||
canAcceptSub = false;
|
||||
}
|
||||
|
||||
switch (toSub.guildState) {
|
||||
case Errant:
|
||||
case Sovereign:
|
||||
canSub = true;
|
||||
canSubToNation = true;
|
||||
break;
|
||||
default:
|
||||
canSub = false;
|
||||
canSubToNation = false;
|
||||
}
|
||||
City nationCap = City.getCity(nation.cityUUID);
|
||||
if (nation.getSubGuildList().size() >= nationCap.getRank()) {
|
||||
canSub = false;
|
||||
}
|
||||
return canSub;
|
||||
|
||||
return canAcceptSub && canSubToNation;
|
||||
}
|
||||
|
||||
public int getRealmsOwnedFlag() {
|
||||
|
||||
Reference in New Issue
Block a user