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

Binary file not shown.

Binary file not shown.

View File

@@ -31,14 +31,14 @@ def pbStorePokemon(pkmn)
if creator if creator
pbMessage(_INTL("Box \"{1}\" on {2}'s PC was full.\1", curboxname, creator)) pbMessage(_INTL("Box \"{1}\" on {2}'s PC was full.\1", curboxname, creator))
else 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 end
pbMessage(_INTL("{1} was transferred to box \"{2}.\"", pkmn.name, boxname)) pbMessage(_INTL("{1} was transferred to box \"{2}.\"", pkmn.name, boxname))
else else
if creator if creator
pbMessage(_INTL("{1} was transferred to {2}'s PC.\1", pkmn.name, creator)) pbMessage(_INTL("{1} was transferred to {2}'s PC.\1", pkmn.name, creator))
else 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 end
pbMessage(_INTL("It was stored in box \"{1}.\"", boxname)) pbMessage(_INTL("It was stored in box \"{1}.\"", boxname))
end end

View File

@@ -78,8 +78,8 @@ class ClothesMartAdapter < OutfitsMartAdapter
end end
def putOnOutfit(item) def putOnOutfit(item)
putOnClothes(item.id) putOnClothes(item.id) if item
@worn_clothes = item.id @worn_clothes = item.id if item
end end
def reset_player_clothes() def reset_player_clothes()

View File

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

Binary file not shown.

View File

@@ -1,3 +1,3 @@
1741570082 1741573772
1741570082 1741573773
1741570083 1741573773

View File

@@ -2,3 +2,6 @@ Graphics/CustomBattlers/spritesheets/spritesheets_base/4.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/72.png Graphics/CustomBattlers/spritesheets/spritesheets_base/72.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/192.png Graphics/CustomBattlers/spritesheets/spritesheets_base/192.png
Graphics/CustomBattlers/spritesheets/spritesheets_custom/192/192.png Graphics/CustomBattlers/spritesheets/spritesheets_custom/192/192.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/157.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/170.png
Graphics/CustomBattlers/spritesheets/spritesheets_custom/170/170.png