From 14f99f7efb7a9d8525e98d47116dbdd10a6d58f5 Mon Sep 17 00:00:00 2001 From: chardub Date: Sun, 9 Mar 2025 16:47:16 -0400 Subject: [PATCH] Fixes issue with hats shops --- .../UI/clothesShop/ClothesShopPresenter.rb | 1 + .../UI/clothesShop/HatsMartAdapter.rb | 2 ++ Data/System.rxdata | Bin 31697 -> 31697 bytes 3 files changed, 3 insertions(+) diff --git a/Data/Scripts/050_Outfits/UI/clothesShop/ClothesShopPresenter.rb b/Data/Scripts/050_Outfits/UI/clothesShop/ClothesShopPresenter.rb index 71438a914..91a5396ad 100644 --- a/Data/Scripts/050_Outfits/UI/clothesShop/ClothesShopPresenter.rb +++ b/Data/Scripts/050_Outfits/UI/clothesShop/ClothesShopPresenter.rb @@ -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 diff --git a/Data/Scripts/050_Outfits/UI/clothesShop/HatsMartAdapter.rb b/Data/Scripts/050_Outfits/UI/clothesShop/HatsMartAdapter.rb index 3d13d5378..bf3f49b69 100644 --- a/Data/Scripts/050_Outfits/UI/clothesShop/HatsMartAdapter.rb +++ b/Data/Scripts/050_Outfits/UI/clothesShop/HatsMartAdapter.rb @@ -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 diff --git a/Data/System.rxdata b/Data/System.rxdata index 745524fc618cf8cedd0b3a5e5c52e3a779ebd630..e6464c571784c95061cd5e886a3007ca1fa56bcd 100644 GIT binary patch delta 19 bcmccko$=y##tmAsEIZ?+m^SOlE{+2LSy%_b delta 19 bcmccko$=y##tmAsEC~~}88_?6E{+2LSU3l&