Fixes issue with possible uninitialized dyed items map when opening clothing menus

This commit is contained in:
chardub
2025-03-11 14:04:42 -04:00
parent 701ea9ab11
commit 7358d67e7e
18 changed files with 167 additions and 6 deletions

View File

@@ -416,6 +416,8 @@ def switchToFavoriteOutfit()
else
if (Kernel.pbConfirmMessage("Put on your favorite outfit?"))
echoln "favorite clothes: #{$Trainer.favorite_clothes}, favorite hat: #{$Trainer.favorite_hat}, favorite hat2: #{$Trainer.favorite_hat2}"
playOutfitChangeAnimation()
putOnClothes($Trainer.favorite_clothes, true) if $Trainer.favorite_clothes
putOnHat($Trainer.favorite_hat, true, false) if $Trainer.favorite_hat