Force rune shop to buy chaos runes at 13ea and death runes at 27ea until formula is corrected

This commit is contained in:
ceikry
2021-08-01 23:39:20 -05:00
parent 1ac9dd360a
commit 425e1a954c
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -5625,6 +5625,7 @@
"examine": "Used for medium missile spells.",
"grand_exchange_price": "320",
"durability": null,
"tokkul_price": "270",
"name": "Death rune",
"tradeable": "true",
"low_alchemy": "41",
@@ -5651,6 +5652,7 @@
"examine": "Used for small missile spells.",
"grand_exchange_price": "140",
"durability": null,
"tokkul_price": "135",
"name": "Chaos rune",
"tradeable": "true",
"low_alchemy": "18",
@@ -639,7 +639,10 @@ public class Shop {
}
double mod = (maxMod + minMod) / 2;
SystemLogger.logInfo("" + item.getDefinition().getAlchemyValue(highAlch) + " " + mod + " " + item.getAmount());
int value = (int) (item.getDefinition().getAlchemyValue(highAlch) * mod * item.getAmount());
int baseValue = item.getDefinition().getAlchemyValue(highAlch);
int value = (int) (baseValue * mod * item.getAmount());
if(getCurrency() == Items.TOKKUL_6529 && item.getId() == Items.CHAOS_RUNE_562) value = 13;
if(getCurrency() == Items.TOKKUL_6529 && item.getId() == Items.DEATH_RUNE_560) value = 27;
if(item.getId() == 12183){
value = 25 * item.getAmount();
}