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

3
src/engine/objects/NPC.java

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

Loading…
Cancel
Save