From 362832a1968f37a19c923c27d89ebfac683e5454 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 31 Aug 2024 19:12:22 -0500 Subject: [PATCH] NPC safezone sell% = 0 --- src/engine/objects/NPC.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 1e6d2f83..ee2096ab 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -122,7 +122,11 @@ public class NPC extends AbstractCharacter { // this.buyPercent = rs.getFloat("npc_buyPercent"); this.buyPercent = .33f; - this.sellPercent = 1; + if(ZoneManager.findSmallestZone(this.loc) != null && ZoneManager.findSmallestZone(this.loc).getSafeZone() == 1){ + this.sellPercent = 0; + }else{ + this.sellPercent = 1; + } this.setRot(new Vector3f(0, rs.getFloat("npc_rotation"), 0));