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

Loading…
Cancel
Save