Fixes wearable sprite offset and layering issues when autoscrolling the map

This commit is contained in:
infinitefusion
2024-07-05 17:52:17 -04:00
parent 6180590860
commit 4a6a889b3e
15 changed files with 10 additions and 19 deletions

View File

@@ -236,7 +236,6 @@ class PokemonMart_Scene
def pbStartBuyOrSellScene(buying, stock, adapter)
# Scroll right before showing screen
$scene.spritesetGlobal.playersprite.toggleWearableScrollAdjustments(true) # todo temp
scroll_map()
@viewport = Viewport.new(0, 0, Graphics.width, Graphics.height)
@viewport.z = 99999
@@ -278,8 +277,6 @@ class PokemonMart_Scene
@buying = buying
pbRefresh
Graphics.frame_reset
$scene.spritesetGlobal.playersprite.toggleWearableScrollAdjustments(false) # todo temp
end
def pbStartBuyScene(stock, adapter)
@@ -590,6 +587,7 @@ class PokemonMartScreen
@scene.pbStartBuyScene(@stock,@adapter)
item=nil
loop do
pbWait(4)
item=@scene.pbChooseBuyItem
break if !item
quantity=0