From 030476c24473050df32bfa50b4cb1c54a036a6a6 Mon Sep 17 00:00:00 2001 From: vk Date: Sat, 25 Sep 2021 13:25:48 -0700 Subject: [PATCH] use item.value instead of item.maxValue as base shop price This fixes the issue of all shop prices being 5% more than they are supposed to (like dlong/d skimmy being 105k insread of 100k, and even spirit shards being 26 ea instead of 25 ea). --- Server/src/main/java/core/game/content/global/shop/Shop.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/java/core/game/content/global/shop/Shop.kt b/Server/src/main/java/core/game/content/global/shop/Shop.kt index 1ae9e865e..08034c357 100644 --- a/Server/src/main/java/core/game/content/global/shop/Shop.kt +++ b/Server/src/main/java/core/game/content/global/shop/Shop.kt @@ -708,7 +708,7 @@ open class Shop @JvmOverloads constructor( open fun getBuyPrice(item: Item, player: Player): Int { var item = item item = Item(item.id, 1) - var price = item.definition.maxValue + var price = item.definition.value val sellVal = getSellingValue(item, player) if (price < sellVal) { price = getSellingValue(player, 0, item) + sellVal - (sellVal - item.definition.maxValue)