Fixes issue when putting on clothes

This commit is contained in:
chardub
2025-03-09 22:34:42 -04:00
parent bc2d48488e
commit 3d6e76a41e
8 changed files with 11 additions and 8 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -9,7 +9,7 @@ class ClothesShopPresenter < PokemonMartScreen
end
def putOnClothes(item)
@adapter.putOnOutfit(item)
@adapter.putOnOutfit(item) if item
@scene.pbEndBuyScene
end