From 3494ae1e6b534004a99e7febd0e408ce17bbd4f6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 29 Apr 2023 08:55:12 -0400 Subject: [PATCH] Bindloc for non slooted npc's. --- src/engine/objects/NPC.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 01621289..66b38c1f 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -357,6 +357,11 @@ public class NPC extends AbstractCharacter { this.parentZone.zoneNPCSet.remove(this); this.parentZone.zoneNPCSet.add(this); + // Setup location for this NPC + + this.bindLoc = this.building.getLoc().add(this.bindLoc); + this.loc = bindLoc; + // Add this npc to the hireling list. // if slotted within a building