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
|
item = @scene.pbChooseBuyItem
|
||||||
#break if !item
|
#break if !item
|
||||||
if !item
|
if !item
|
||||||
|
break if @adapter.isShop?
|
||||||
if pbConfirm(_INTL("Discard the changes to your outfit?"))
|
if pbConfirm(_INTL("Discard the changes to your outfit?"))
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ class HatsMartAdapter < OutfitsMartAdapter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def toggleEvent(item)
|
def toggleEvent(item)
|
||||||
|
return if isShop?
|
||||||
$Trainer.set_hat(nil,@is_secondary_hat)
|
$Trainer.set_hat(nil,@is_secondary_hat)
|
||||||
@worn_clothes = nil
|
@worn_clothes = nil
|
||||||
end
|
end
|
||||||
@@ -32,6 +33,7 @@ class HatsMartAdapter < OutfitsMartAdapter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def switchVersion(item,delta=1)
|
def switchVersion(item,delta=1)
|
||||||
|
return if isShop?
|
||||||
@is_secondary_hat = !@is_secondary_hat
|
@is_secondary_hat = !@is_secondary_hat
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user