mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Fixes issue when putting on clothes
This commit is contained in:
@@ -31,14 +31,14 @@ def pbStorePokemon(pkmn)
|
||||
if creator
|
||||
pbMessage(_INTL("Box \"{1}\" on {2}'s PC was full.\1", curboxname, creator))
|
||||
else
|
||||
pbMessage(_INTL("Box \"{1}\" on someone's PC was full.\1", curboxname))
|
||||
pbMessage(_INTL("Box \"{1}\" on the PC was full.\1", curboxname))
|
||||
end
|
||||
pbMessage(_INTL("{1} was transferred to box \"{2}.\"", pkmn.name, boxname))
|
||||
else
|
||||
if creator
|
||||
pbMessage(_INTL("{1} was transferred to {2}'s PC.\1", pkmn.name, creator))
|
||||
else
|
||||
pbMessage(_INTL("{1} was transferred to someone's PC.\1", pkmn.name))
|
||||
pbMessage(_INTL("{1} was transferred to the PC.\1", pkmn.name))
|
||||
end
|
||||
pbMessage(_INTL("It was stored in box \"{1}.\"", boxname))
|
||||
end
|
||||
|
||||
@@ -78,8 +78,8 @@ class ClothesMartAdapter < OutfitsMartAdapter
|
||||
end
|
||||
|
||||
def putOnOutfit(item)
|
||||
putOnClothes(item.id)
|
||||
@worn_clothes = item.id
|
||||
putOnClothes(item.id) if item
|
||||
@worn_clothes = item.id if item
|
||||
end
|
||||
|
||||
def reset_player_clothes()
|
||||
|
||||
@@ -9,7 +9,7 @@ class ClothesShopPresenter < PokemonMartScreen
|
||||
end
|
||||
|
||||
def putOnClothes(item)
|
||||
@adapter.putOnOutfit(item)
|
||||
@adapter.putOnOutfit(item) if item
|
||||
@scene.pbEndBuyScene
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user