From 8227db92c8087e43e8ce784650dcbe86c5456206 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 15 May 2024 21:32:01 -0500 Subject: [PATCH] prospector cost reduced to 500k on disc merchant --- src/engine/net/client/ClientMessagePump.java | 2 ++ src/engine/objects/Contract.java | 2 +- src/engine/objects/MobEquipment.java | 9 +++++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index c6ce83c5..b9167d8d 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -1444,6 +1444,8 @@ public class ClientMessagePump implements NetMsgHandler { return; } int cost = me.magicValue; + if(npc.getContractID() == 1201 && me.getItemBase().getName().equals("Prospector")) + cost = 50; int resourceCost = Warehouse.getCostForResource(me.getItemBase().getUUID()); if (resourceCost != 0) cost = resourceCost; diff --git a/src/engine/objects/Contract.java b/src/engine/objects/Contract.java index 4b1f3b76..627a9c2d 100644 --- a/src/engine/objects/Contract.java +++ b/src/engine/objects/Contract.java @@ -213,7 +213,7 @@ public class Contract extends AbstractGameObject { if(this.getObjectUUID() == 900){ for(MobEquipment me : this.sellInventory){ if(me.getItemBase().getName().equals("Prospector")){ - me.magicValue = 500; + me.magicValue = 50; } else{ me.magicValue = 1000; } diff --git a/src/engine/objects/MobEquipment.java b/src/engine/objects/MobEquipment.java index f2a81405..52156693 100644 --- a/src/engine/objects/MobEquipment.java +++ b/src/engine/objects/MobEquipment.java @@ -112,8 +112,13 @@ public class MobEquipment extends AbstractGameObject { writer.putInt((int)(mobEquipment.itemBase.getBaseValue() * 0.5f)); writer.putInt((int)(mobEquipment.itemBase.getBaseValue() * 0.5f)); }else { - writer.putInt(mobEquipment.magicValue); - writer.putInt(mobEquipment.magicValue); + if(mobEquipment.itemBase.getName().equals("Prospector")){ + writer.putInt(50); + writer.putInt(50); + }else { + writer.putInt(mobEquipment.magicValue); + writer.putInt(mobEquipment.magicValue); + } } }