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