diff --git a/src/engine/objects/Contract.java b/src/engine/objects/Contract.java index e18efab9..dcfd6001 100644 --- a/src/engine/objects/Contract.java +++ b/src/engine/objects/Contract.java @@ -204,6 +204,11 @@ public class Contract extends AbstractGameObject { me.magicValue = Warehouse.getCostForResource(me.getItemBase().getUUID()); } } + if(this.getObjectUUID() == 1202) + for(MobEquipment me : this.sellInventory){ + me.magicValue = ItemBase.getPriceCeilingForRune(me.getItemBase().getUUID()); + } + return this.sellInventory; } diff --git a/src/engine/objects/ItemBase.java b/src/engine/objects/ItemBase.java index 8b108c50..5ba5fc26 100644 --- a/src/engine/objects/ItemBase.java +++ b/src/engine/objects/ItemBase.java @@ -929,4 +929,61 @@ public class ItemBase{ return new String[]{}; } + + public static int getPriceCeilingForRune(int runeID){ + switch(runeID){ + case 250001: //5 stats + case 250010: + case 250019: + case 250028: + case 250037: + return 3000000; + case 250002: //10 stats + case 250011: + case 250020: + case 250029: + case 250038: + return 4000000; + case 250003: //15 stats + case 250012: + case 250021: + case 250030: + case 250039: + return 5000000; + case 250004: //20 stats + case 250013: + case 250022: + case 250031: + case 250040: + return 6000000; + case 250005: //25 stats + case 250014: + case 250023: + case 250032: + case 250041: + return 7000000; + case 250006: //30 stats + case 250015: + case 250024: + case 250033: + case 250042: + return 8000000; + case 250007: //35 stats + case 250016: + case 250025: + case 250034: + case 250043: + return 9000000; + case 250008: //40 stats + case 250017: + case 250026: + case 250035: + case 250044: + return 10000000; + case 3040: //prospector + case 3021: //traveller + return 500000; + } + return 10000000; + } }