forked from 2009Scape/Server
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:
commit
9c5dd57b63
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue