Added separate SellPrice property for items, changed messages when learning a move, updates to Gen 8 items.txt

This commit is contained in:
Maruno17
2021-07-10 22:17:02 +01:00
parent 8ed9c5139e
commit 3d634a7f22
8 changed files with 501 additions and 381 deletions

View File

@@ -60,6 +60,7 @@ class PokemonMartAdapter
return $game_temp.mart_prices[item][0] if $game_temp.mart_prices[item][0] > 0
end
end
return GameData::Item.get(item).sell_price if selling
return GameData::Item.get(item).price
end
@@ -623,11 +624,11 @@ class PokemonMartScreen
item=@scene.pbChooseSellItem
break if !item
itemname=@adapter.getDisplayName(item)
price=@adapter.getPrice(item,true)
if !@adapter.canSell?(item)
pbDisplayPaused(_INTL("{1}? Oh, no. I can't buy that.",itemname))
next
end
price=@adapter.getPrice(item,true)
qty=@adapter.getQuantity(item)
next if qty==0
@scene.pbShowMoney