Fixes issue with hats shops

This commit is contained in:
chardub
2025-03-09 16:47:16 -04:00
parent b14d9d491c
commit 14f99f7efb
3 changed files with 3 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ class ClothesShopPresenter < PokemonMartScreen
item = @scene.pbChooseBuyItem
#break if !item
if !item
break if @adapter.isShop?
if pbConfirm(_INTL("Discard the changes to your outfit?"))
break
else

View File

@@ -12,6 +12,7 @@ class HatsMartAdapter < OutfitsMartAdapter
end
def toggleEvent(item)
return if isShop?
$Trainer.set_hat(nil,@is_secondary_hat)
@worn_clothes = nil
end
@@ -32,6 +33,7 @@ class HatsMartAdapter < OutfitsMartAdapter
end
def switchVersion(item,delta=1)
return if isShop?
@is_secondary_hat = !@is_secondary_hat
end

Binary file not shown.