mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
clothes menu crash fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user