Merge branch 'shops' into 'master'
use item.value instead of item.maxValue as base shop price See merge request 2009scape/2009scape!273
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user