From bbdbead1ff2587f8e881a1bc311debc84c9e7fd0 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 31 Mar 2023 09:17:15 -0400 Subject: [PATCH] Fidaltiy garbage removed from NPC class. --- src/engine/objects/Building.java | 1 - src/engine/objects/NPC.java | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/engine/objects/Building.java b/src/engine/objects/Building.java index d9fca2d5..80a625c4 100644 --- a/src/engine/objects/Building.java +++ b/src/engine/objects/Building.java @@ -99,7 +99,6 @@ public class Building extends AbstractWorldObject { public int floor; public int level; - public HashMap fidelityNpcs = new HashMap<>(); public AtomicBoolean isDeranking = new AtomicBoolean(false); private ArrayList children = null; public LocalDateTime maintDateTime; diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index a48dcb40..1959bbf1 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -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());