Browse Source

prospector cost reduced to 500k on disc merchant

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
742232166e
  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

@ -1422,6 +1422,8 @@ public class ClientMessagePump implements NetMsgHandler {
return; return;
} }
int cost = me.magicValue; int cost = me.magicValue;
if(npc.getContractID() == 1201 && me.getItemBase().getName().equals("Prospector"))
cost = 50;
int resourceCost = Warehouse.getCostForResource(me.getItemBase().getUUID()); int resourceCost = Warehouse.getCostForResource(me.getItemBase().getUUID());
if (resourceCost != 0) if (resourceCost != 0)
cost = resourceCost; cost = resourceCost;

2
src/engine/objects/Contract.java

@ -213,7 +213,7 @@ public class Contract extends AbstractGameObject {
if(this.getObjectUUID() == 900){ if(this.getObjectUUID() == 900){
for(MobEquipment me : this.sellInventory){ for(MobEquipment me : this.sellInventory){
if(me.getItemBase().getName().equals("Prospector")){ if(me.getItemBase().getName().equals("Prospector")){
me.magicValue = 500; me.magicValue = 50;
} else{ } else{
me.magicValue = 1000; me.magicValue = 1000;
} }

9
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));
writer.putInt((int)(mobEquipment.itemBase.getBaseValue() * 0.5f)); writer.putInt((int)(mobEquipment.itemBase.getBaseValue() * 0.5f));
}else { }else {
writer.putInt(mobEquipment.magicValue); if(mobEquipment.itemBase.getName().equals("Prospector")){
writer.putInt(mobEquipment.magicValue); writer.putInt(50);
writer.putInt(50);
}else {
writer.putInt(mobEquipment.magicValue);
writer.putInt(mobEquipment.magicValue);
}
} }
} }

Loading…
Cancel
Save