Browse Source

Fidaltiy garbage removed from NPC class.

master
MagicBot 2 years ago
parent
commit
bbdbead1ff
  1. 1
      src/engine/objects/Building.java
  2. 3
      src/engine/objects/NPC.java

1
src/engine/objects/Building.java

@ -99,7 +99,6 @@ public class Building extends AbstractWorldObject {
public int floor; public int floor;
public int level; public int level;
public HashMap<Integer,Integer> fidelityNpcs = new HashMap<>();
public AtomicBoolean isDeranking = new AtomicBoolean(false); public AtomicBoolean isDeranking = new AtomicBoolean(false);
private ArrayList<Building> children = null; private ArrayList<Building> children = null;
public LocalDateTime maintDateTime; public LocalDateTime maintDateTime;

3
src/engine/objects/NPC.java

@ -210,9 +210,6 @@ public class NPC extends AbstractCharacter {
try{ try{
this.building = BuildingManager.getBuilding(buildingID); this.building = BuildingManager.getBuilding(buildingID);
if (this.building != null)
this.building.fidelityNpcs.put(currentID, this.building.fidelityNpcs.size() + 1);
}catch(Exception e){ }catch(Exception e){
this.building = null; this.building = null;
Logger.error( e.getMessage()); Logger.error( e.getMessage());

Loading…
Cancel
Save