forked from MagicBane/Server
resource merchant to sell items correctly
This commit is contained in:
@@ -198,21 +198,11 @@ public class Contract extends AbstractGameObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayList<MobEquipment> getSellInventory() {
|
public ArrayList<MobEquipment> getSellInventory() {
|
||||||
|
|
||||||
if(this.getObjectUUID() == 900){
|
if(this.getObjectUUID() == 900){
|
||||||
for (MobEquipment me : this.sellInventory) {
|
for (MobEquipment me : this.sellInventory) {
|
||||||
if(me.getItemBase().getUUID() == 1705032){
|
me.magicValue = (Warehouse.getSellStackSize(me.getItemBase().getUUID()) * Warehouse.getCostForResource(me.getItemBase().getUUID()));
|
||||||
me.magicValue = 1000000;
|
|
||||||
}else {
|
|
||||||
me.magicValue = Warehouse.getCostForResource(me.getItemBase().getUUID()) * Warehouse.getSellStackSize(me.getItemBase().getUUID());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if(this.getObjectUUID() == 1202)
|
|
||||||
for(MobEquipment me : this.sellInventory){
|
|
||||||
me.magicValue = ItemBase.getPriceCeilingForRune(me.getItemBase().getUUID());
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.sellInventory;
|
return this.sellInventory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user