clothes menu crash fix

This commit is contained in:
chardub
2025-03-10 13:35:04 -04:00
parent 36851c7bb7
commit 701ea9ab11
6 changed files with 28 additions and 7 deletions

View File

@@ -8,9 +8,9 @@ class ClothesShopPresenter < PokemonMartScreen
@use_versions = versions
end
def putOnClothes(item)
def putOnClothes(item,end_scene=true)
@adapter.putOnOutfit(item) if item
@scene.pbEndBuyScene
@scene.pbEndBuyScene if end_scene
end
@@ -73,6 +73,7 @@ class ClothesShopPresenter < PokemonMartScreen
end
def quitMenuPrompt(item)
return true if !@adapter.is_a?(HatsMartAdapter)
boolean_changes_detected = @adapter.player_changed_clothes?
return true if !boolean_changes_detected
pbPlayCancelSE