Browse Source

prospector cost reduced to 500k on disc merchant

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
8227db92c8
  1. 2
      src/engine/net/client/ClientMessagePump.java
  2. 2
      src/engine/objects/Contract.java
  3. 9
      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;
}

9
src/engine/objects/MobEquipment.java

@ -112,8 +112,13 @@ public class MobEquipment extends AbstractGameObject { @@ -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);
}
}
}

Loading…
Cancel
Save