Browse Source

prospector cost reduced to 500k on disc merchant

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
8227db92c8
  1. 2
      src/engine/net/client/ClientMessagePump.java
  2. 2
      src/engine/objects/Contract.java
  3. 5
      src/engine/objects/MobEquipment.java

2
src/engine/net/client/ClientMessagePump.java

@ -1444,6 +1444,8 @@ public class ClientMessagePump implements NetMsgHandler { @@ -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;

2
src/engine/objects/Contract.java

@ -213,7 +213,7 @@ public class Contract extends AbstractGameObject { @@ -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;
}

5
src/engine/objects/MobEquipment.java

@ -111,11 +111,16 @@ public class MobEquipment extends AbstractGameObject { @@ -111,11 +111,16 @@ public class MobEquipment extends AbstractGameObject {
if(mobEquipment.itemBase.getType().equals(Enum.ItemType.POTION)){
writer.putInt((int)(mobEquipment.itemBase.getBaseValue() * 0.5f));
writer.putInt((int)(mobEquipment.itemBase.getBaseValue() * 0.5f));
}else {
if(mobEquipment.itemBase.getName().equals("Prospector")){
writer.putInt(50);
writer.putInt(50);
}else {
writer.putInt(mobEquipment.magicValue);
writer.putInt(mobEquipment.magicValue);
}
}
}
public static void serializeForClientMsg(MobEquipment mobEquipment, ByteBufferWriter writer) throws SerializationException {
_serializeForClientMsg(mobEquipment, writer, true);

Loading…
Cancel
Save