forked from MagicBane/Server
Method removed
This commit is contained in:
@@ -79,18 +79,14 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
GuildManager.updateAllGuildBinds(player.getGuild(), npc.getGuild().getOwnedCity());
|
||||
|
||||
|
||||
//update Guild state.
|
||||
player.getGuild().setNation(npc.getGuild());
|
||||
GuildManager.updateAllGuildTags(player.getGuild());
|
||||
|
||||
//update state twice, errant to petitioner, to sworn.
|
||||
player.getGuild().upgradeGuildState(false);//to petitioner
|
||||
player.getGuild().upgradeGuildState(false);//to sworn
|
||||
|
||||
//update state
|
||||
player.getGuild().guildState = mbEnums.GuildState.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) {
|
||||
|
||||
boolean canSub;
|
||||
|
||||
Reference in New Issue
Block a user