From bcb06fb05ecccb8b90cfa21814fbee754ce78169 Mon Sep 17 00:00:00 2001 From: Ceikry Date: Mon, 5 Apr 2021 20:19:40 -0500 Subject: [PATCH] Corrected tokkul sell prices (needs testing) --- Server/src/main/java/core/game/content/global/shop/Shop.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Server/src/main/java/core/game/content/global/shop/Shop.java b/Server/src/main/java/core/game/content/global/shop/Shop.java index 1135d5127..d7a044723 100644 --- a/Server/src/main/java/core/game/content/global/shop/Shop.java +++ b/Server/src/main/java/core/game/content/global/shop/Shop.java @@ -605,13 +605,13 @@ public class Shop { item = new Item(item.getNoteChange(), item.getAmount()); } int amount = getContainer(1).getAmount(item); - if (getCurrency() == TOKKUL) { + /*if (getCurrency() == TOKKUL) { for (Item i : items) { if (i.getId() == item.getId()) { amount = i.getAmount(); } } - } + }*/ if (amount < 1) { amount = getContainer(0).getAmount(item); } @@ -621,6 +621,7 @@ public class Shop { if (tokkul > 0) { value = tokkul /= 10; } + value = value * item.getAmount(); } return value; }