mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes issue with hats shops
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user