More state work

This commit is contained in:
2026-05-10 12:06:32 -04:00
parent aea6869ca0
commit 412f7f956f
2 changed files with 5 additions and 6 deletions
+2 -1
View File
@@ -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
+3 -5
View File
@@ -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);