From e331f7e2ffed27f70888f9d477d16c1794545192 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 21 Aug 2023 14:26:50 -0400 Subject: [PATCH] Unused methods removed. --- src/engine/objects/NPC.java | 39 ------------------------------------- 1 file changed, 39 deletions(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index d917237d..1e6d2f83 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -739,41 +739,6 @@ public class NPC extends AbstractCharacter { return super.getLoc(); } - public float getSpawnX() { - return this.statLat; - } - - public float getSpawnY() { - return this.statAlt; - } - - public float getSpawnZ() { - return this.statLon; - } - - //Sets the relative position to a parent zone - public void setRelPos(Zone zone, float locX, float locY, float locZ) { - - //update ZoneManager's zone building list - if (zone != null) { - if (this.parentZone != null) { - if (zone.getObjectUUID() != this.parentZone.getObjectUUID()) { - this.parentZone.zoneNPCSet.remove(this); - //zone.zoneNPCSet.add(this); - } - } else { - //zone.zoneNPCSet.add(this); - } - } else if (this.parentZone != null) { - this.parentZone.zoneNPCSet.remove(this); - } - - this.statLat = locX; - this.statAlt = locY; - this.statLon = locZ; - this.parentZone = zone; - } - public float getSellPercent() { return this.sellPercent; } @@ -782,10 +747,6 @@ public class NPC extends AbstractCharacter { return this.buyPercent; } - public void setBuyPercent(float buyPercent) { - this.buyPercent = buyPercent; - } - public float getBuyPercent(PlayerCharacter player) { if (NPC.GetNPCProfits(this) == null || this.guild == null) return this.buyPercent;