mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
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).
This commit is contained in:
parent
c1192c2331
commit
030476c244
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