Browse Source

Errant mines active at startup.

master
MagicBot 2 years ago
parent
commit
da073feb08
  1. 14
      src/engine/objects/Mine.java

14
src/engine/objects/Mine.java

@ -103,10 +103,11 @@ public class Mine extends AbstractGameObject { @@ -103,10 +103,11 @@ public class Mine extends AbstractGameObject {
this.owningGuild = Guild.getGuild(ownerUID);
Guild nation = null;
if (!this.owningGuild.isErrant()) {
this.guildName = this.owningGuild.getName();
this.guildTag = this.owningGuild.getGuildTag();
nation = this.owningGuild.getNation();
if (this.owningGuild.isErrant()) {
this.guildName = "";
this.guildTag = GuildTag.ERRANT;
nation = Guild.getErrantGuild();
this.owningGuild = Guild.getErrantGuild();
this.setActive(true);
} else {
this.guildName = "";
@ -114,6 +115,11 @@ public class Mine extends AbstractGameObject { @@ -114,6 +115,11 @@ public class Mine extends AbstractGameObject {
nation = Guild.getErrantGuild();
this.owningGuild = Guild.getErrantGuild();
this.setActive(false);
this.guildName = this.owningGuild.getName();
this.guildTag = this.owningGuild.getGuildTag();
nation = this.owningGuild.getNation();
this.setActive(false);
}
if (!nation.isErrant()) {

Loading…
Cancel
Save