|
|
|
@ -51,7 +51,6 @@ public class Guild extends AbstractWorldObject {
@@ -51,7 +51,6 @@ public class Guild extends AbstractWorldObject {
|
|
|
|
|
|
|
|
|
|
private final String name; |
|
|
|
|
private Guild nation; |
|
|
|
|
private static Guild g; |
|
|
|
|
private final GuildTag guildTag; |
|
|
|
|
// TODO add these to database
|
|
|
|
|
private String motto = ""; |
|
|
|
@ -407,22 +406,7 @@ public class Guild extends AbstractWorldObject {
@@ -407,22 +406,7 @@ public class Guild extends AbstractWorldObject {
|
|
|
|
|
* Utils |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static Guild getErrantGuild() { |
|
|
|
|
return g; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void CreateErrantGuild(){ |
|
|
|
|
|
|
|
|
|
g = new Guild( "None", Guild.getErrantNation(), 0, |
|
|
|
|
"Anarchy", GuildTag.ERRANT, 0); |
|
|
|
|
g.getObjectType(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isErrant() { |
|
|
|
|
if (this.getObjectUUID() == Guild.g.getObjectUUID()) |
|
|
|
|
return true; |
|
|
|
|
return this.getObjectUUID() == Guild.errant.getObjectUUID(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -739,6 +723,11 @@ Guild.serializeForClientMsg(guild,writer, null, false);
@@ -739,6 +723,11 @@ Guild.serializeForClientMsg(guild,writer, null, false);
|
|
|
|
|
|
|
|
|
|
private static Guild errant; |
|
|
|
|
|
|
|
|
|
public static Guild getErrantGuild() { |
|
|
|
|
|
|
|
|
|
return Guild.getErrantNation(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Guild getErrantNation() { |
|
|
|
|
if (Guild.errant == null) |
|
|
|
|
Guild.errant = new Guild("None", null, 10, "Despot Rule", GuildTag.ERRANT, 0); |
|
|
|
|