Browse Source

Removed duplicate and unused code

combat-2
MagicBot 1 year ago
parent
commit
a487a7bd2f
  1. 10
      src/engine/objects/Guild.java

10
src/engine/objects/Guild.java

@ -59,8 +59,6 @@ public class Guild extends AbstractWorldObject { @@ -59,8 +59,6 @@ public class Guild extends AbstractWorldObject {
private int cityUUID = 0;
private int mineTime;
private ArrayList<PlayerCharacter> banishList;
private ArrayList<PlayerCharacter> characterKOSList;
private ArrayList<Guild> guildKOSList;
private ArrayList<Guild> allyList = new ArrayList<>();
private ArrayList<Guild> enemyList = new ArrayList<>();
private ArrayList<Guild> recommendList = new ArrayList<>();
@ -83,8 +81,6 @@ public class Guild extends AbstractWorldObject { @@ -83,8 +81,6 @@ public class Guild extends AbstractWorldObject {
this.leadershipType = leadershipType;
this.banishList = new ArrayList<>();
this.characterKOSList = new ArrayList<>();
this.guildKOSList = new ArrayList<>();
this.allyList = new ArrayList<>();
this.enemyList = new ArrayList<>();
this.subGuildList = new ArrayList<>();
@ -115,8 +111,6 @@ public class Guild extends AbstractWorldObject { @@ -115,8 +111,6 @@ public class Guild extends AbstractWorldObject {
this.leadershipType = leadershipType;
this.banishList = new ArrayList<>();
this.characterKOSList = new ArrayList<>();
this.guildKOSList = new ArrayList<>();
this.allyList = new ArrayList<>();
this.enemyList = new ArrayList<>();
this.subGuildList = new ArrayList<>();
@ -869,10 +863,8 @@ public class Guild extends AbstractWorldObject { @@ -869,10 +863,8 @@ public class Guild extends AbstractWorldObject {
//add alliance list, clear all lists as there seems to be a bug where alliances are doubled, need to find where.
//possible runAfterLoad being called twice?!?!
this.banishList = dbGuildHandler.GET_GUILD_BANISHED(this.getObjectUUID());
this.characterKOSList = DbManager.GuildQueries.GET_GUILD_KOS_CHARACTER(this.getObjectUUID());
this.guildKOSList = DbManager.GuildQueries.GET_GUILD_KOS_GUILD(this.getObjectUUID());
this.allyList.clear();
this.enemyList.clear();

Loading…
Cancel
Save