|
|
@ -81,6 +81,9 @@ public class Guild extends AbstractWorldObject { |
|
|
|
private String hash; |
|
|
|
private String hash; |
|
|
|
private boolean ownerIsNPC; |
|
|
|
private boolean ownerIsNPC; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static Guild errantGuild; |
|
|
|
|
|
|
|
private static Guild errantNation; |
|
|
|
|
|
|
|
|
|
|
|
public LocalDateTime lastWooEditTime; |
|
|
|
public LocalDateTime lastWooEditTime; |
|
|
|
public HashMap<Integer,GuildAlliances> guildAlliances = new HashMap<>(); |
|
|
|
public HashMap<Integer,GuildAlliances> guildAlliances = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
@ -407,7 +410,7 @@ public class Guild extends AbstractWorldObject { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
public boolean isErrant() { |
|
|
|
public boolean isErrant() { |
|
|
|
return this.getObjectUUID() == Guild.errant.getObjectUUID(); |
|
|
|
return this.getObjectUUID() == Guild.errantGuild.getObjectUUID(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -721,14 +724,19 @@ Guild.serializeForClientMsg(guild,writer, null, false); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static Guild errant; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static Guild getErrantGuild() { |
|
|
|
public static Guild getErrantGuild() { |
|
|
|
|
|
|
|
|
|
|
|
if (Guild.errant == null) |
|
|
|
if (Guild.errantGuild == null) |
|
|
|
Guild.errant = new Guild("None", null, 10, "Despot Rule", GuildTag.ERRANT, 0); |
|
|
|
Guild.errantGuild = new Guild( "None", Guild.getErrantNation(), 0, |
|
|
|
|
|
|
|
"Anarchy", GuildTag.ERRANT, 0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Guild.errantGuild; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Guild.errant; |
|
|
|
public static Guild getErrantNation() { |
|
|
|
|
|
|
|
if (Guild.errantNation == null) |
|
|
|
|
|
|
|
Guild.errantNation = new Guild("None", null, 10, "Despot Rule", GuildTag.ERRANT, 0); |
|
|
|
|
|
|
|
return Guild.errantNation; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Guild getGuild(final int objectUUID) { |
|
|
|
public static Guild getGuild(final int objectUUID) { |
|
|
|