More state work
This commit is contained in:
@@ -1173,7 +1173,8 @@ public class City extends AbstractWorldObject {
|
||||
sourceNation.getSubGuildList().remove(sourceGuild);
|
||||
|
||||
if (sourceNation.getSubGuildList().isEmpty())
|
||||
sourceNation.downgradeGuildState();
|
||||
sourceNation.guildState = GuildState.Sovereign;
|
||||
|
||||
}
|
||||
|
||||
// Link the mew guild with the tree
|
||||
|
||||
@@ -908,15 +908,13 @@ public class Guild extends AbstractWorldObject {
|
||||
// Guild without any subs is no longer a nation
|
||||
|
||||
if (subGuild.getOwnedCity() == null) {
|
||||
subGuild.nation = null;
|
||||
subGuild.guildState = GuildState.Errant;
|
||||
subGuild.nation = Guild.getErrantNation();
|
||||
} else {
|
||||
subGuild.nation = subGuild;
|
||||
subGuild.guildState = GuildState.Errant;
|
||||
}
|
||||
|
||||
// Downgrade guild
|
||||
|
||||
subGuild.downgradeGuildState();
|
||||
|
||||
// Remove from collection
|
||||
|
||||
subGuildList.remove(subGuild);
|
||||
|
||||
Reference in New Issue
Block a user