Method removed
This commit is contained in:
@@ -79,18 +79,14 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GuildManager.updateAllGuildBinds(player.getGuild(), npc.getGuild().getOwnedCity());
|
GuildManager.updateAllGuildBinds(player.getGuild(), npc.getGuild().getOwnedCity());
|
||||||
|
|
||||||
|
|
||||||
//update Guild state.
|
//update Guild state.
|
||||||
player.getGuild().setNation(npc.getGuild());
|
player.getGuild().setNation(npc.getGuild());
|
||||||
GuildManager.updateAllGuildTags(player.getGuild());
|
GuildManager.updateAllGuildTags(player.getGuild());
|
||||||
|
|
||||||
//update state twice, errant to petitioner, to sworn.
|
//update state
|
||||||
player.getGuild().upgradeGuildState(false);//to petitioner
|
player.getGuild().guildState = mbEnums.GuildState.Sworn;
|
||||||
player.getGuild().upgradeGuildState(false);//to sworn
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -627,38 +627,6 @@ public class Guild extends AbstractWorldObject {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void upgradeGuildState(boolean nation) {
|
|
||||||
if (nation) {
|
|
||||||
this.guildState = GuildState.Nation;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
switch (this.guildState) {
|
|
||||||
|
|
||||||
case Errant:
|
|
||||||
this.guildState = GuildState.Petitioner;
|
|
||||||
break;
|
|
||||||
case Sworn:
|
|
||||||
//Can't upgrade
|
|
||||||
break;
|
|
||||||
case Protectorate:
|
|
||||||
this.guildState = GuildState.Province;
|
|
||||||
break;
|
|
||||||
case Petitioner:
|
|
||||||
this.guildState = GuildState.Sworn;
|
|
||||||
break;
|
|
||||||
case Province:
|
|
||||||
//Can't upgrade
|
|
||||||
break;
|
|
||||||
case Nation:
|
|
||||||
//Can't upgrade
|
|
||||||
break;
|
|
||||||
case Sovereign:
|
|
||||||
this.guildState = GuildState.Protectorate;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean canSubAGuild(Guild toSub) {
|
public boolean canSubAGuild(Guild toSub) {
|
||||||
|
|
||||||
boolean canSub;
|
boolean canSub;
|
||||||
|
|||||||
Reference in New Issue
Block a user