clothes menu crash fix

This commit is contained in:
chardub
2025-03-10 13:35:04 -04:00
parent 36851c7bb7
commit 701ea9ab11
6 changed files with 28 additions and 7 deletions

Binary file not shown.

View File

@@ -8,9 +8,9 @@ class ClothesShopPresenter < PokemonMartScreen
@use_versions = versions
end
def putOnClothes(item)
def putOnClothes(item,end_scene=true)
@adapter.putOnOutfit(item) if item
@scene.pbEndBuyScene
@scene.pbEndBuyScene if end_scene
end
@@ -73,6 +73,7 @@ class ClothesShopPresenter < PokemonMartScreen
end
def quitMenuPrompt(item)
return true if !@adapter.is_a?(HatsMartAdapter)
boolean_changes_detected = @adapter.player_changed_clothes?
return true if !boolean_changes_detected
pbPlayCancelSE

View File

@@ -115,9 +115,13 @@ class ClothesShopPresenter < PokemonMartScreen
end
def confirmPutClothes(item)
putOnHats()
$Trainer.hat_color = @adapter.get_dye_color($Trainer.hat)
$Trainer.hat2_color = @adapter.get_dye_color($Trainer.hat2)
if @adapter.is_a?(HatsMartAdapter)
putOnHats()
$Trainer.hat_color = @adapter.get_dye_color($Trainer.hat)
$Trainer.hat2_color = @adapter.get_dye_color($Trainer.hat2)
else
putOnClothes(item,false)
end
end
def playerHatActionsMenu(item)

Binary file not shown.

View File

@@ -1,2 +1,3 @@
1741625839
1741625839
1741628045
1741628045
1741628046

View File

@@ -362,3 +362,18 @@ Graphics/CustomBattlers/spritesheets/spritesheets_custom/496/496.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/166.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/31.png
Graphics/CustomBattlers/spritesheets/spritesheets_custom/179/179.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/359.png
Graphics/CustomBattlers/spritesheets/spritesheets_custom/359/359.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/349.png
Graphics/CustomBattlers/spritesheets/spritesheets_custom/349/349.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/282.png
Graphics/CustomBattlers/spritesheets/spritesheets_custom/282/282.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/373.png
Graphics/CustomBattlers/spritesheets/spritesheets_custom/188/188a.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/207.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/397.png
Graphics/CustomBattlers/spritesheets/spritesheets_custom/397/397.png
Graphics/CustomBattlers/spritesheets/spritesheets_custom/442/442.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/309.png
Graphics/CustomBattlers/spritesheets/spritesheets_base/103.png
Graphics/CustomBattlers/spritesheets/spritesheets_custom/103/103.png