selling items for tokkul now returns the correct amount of tokkul (10x less)

This commit is contained in:
Ryan
2022-05-14 13:23:27 +00:00
parent efbe754654
commit ebc540c7c7
3 changed files with 39 additions and 9 deletions
@@ -196,7 +196,7 @@ class Shop(val title: String, val stock: Array<ShopItem>, val general: Boolean =
val price = when(currency)
{
Items.TOKKUL_6529 -> item.definition.getConfiguration("tokkul_price", 1)
Items.TOKKUL_6529 -> (item.definition.getConfiguration("tokkul_price", 1) / 10.0).toInt() // selling items authentically return 10x less tokkul (floored/truncated) than the item's shop price
Items.ARCHERY_TICKET_1464 -> item.definition.getConfiguration("archery_ticket_price", 1)
else -> getGPSell(Item(shopItemId, 1), stockAmt, currentAmt)
}
@@ -412,4 +412,4 @@ class Shop(val title: String, val stock: Array<ShopItem>, val general: Boolean =
class Success : TransactionStatus()
class Failure(val reason: String) : TransactionStatus()
}
}
}