selling items for tokkul now returns the correct amount of tokkul (10x less)
This commit is contained in:
@@ -7,15 +7,14 @@ import core.game.node.entity.player.link.IronmanMode
|
||||
import core.game.node.item.Item
|
||||
import core.net.IoSession
|
||||
import core.net.packet.IoBuffer
|
||||
import org.rs09.consts.Items
|
||||
import rs09.ServerConstants
|
||||
import rs09.game.content.global.shops.Shop
|
||||
import rs09.game.content.global.shops.ShopItem
|
||||
import rs09.game.system.SystemLogger
|
||||
import rs09.game.system.config.ConfigParser
|
||||
import rs09.game.system.config.ServerConfigParser
|
||||
import rs09.game.world.GameWorld
|
||||
import rs09.game.world.repository.Repository
|
||||
import rs09.plugin.ClassScanner
|
||||
import java.nio.ByteBuffer
|
||||
|
||||
object TestUtils {
|
||||
@@ -36,6 +35,14 @@ object TestUtils {
|
||||
)
|
||||
}
|
||||
|
||||
fun getMockTokkulShop(name: String, vararg stock: Item) : Shop {
|
||||
return Shop(
|
||||
name,
|
||||
stock.map { ShopItem(it.id, it.amount, 100) }.toTypedArray(),
|
||||
currency = Items.TOKKUL_6529
|
||||
)
|
||||
}
|
||||
|
||||
fun preTestSetup() {
|
||||
if(ServerConstants.DATA_PATH == null) {
|
||||
ServerConfigParser.parse(this::class.java.getResource("test.conf"))
|
||||
@@ -94,4 +101,4 @@ class MockSession : IoSession(null, null) {
|
||||
receivedPackets.clear()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user