mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Makes it not possible to put hats on triple fusions (temp fix to prevent crash)
This commit is contained in:
Binary file not shown.
@@ -1254,7 +1254,7 @@ class PokemonPartyScreen
|
||||
end
|
||||
end
|
||||
commands[cmdSwitch = commands.length] = _INTL("Switch") if @party.length > 1
|
||||
commands[cmdHat = commands.length] = _INTL("Hat") if !pkmn.egg? && $game_switches[SWITCH_UNLOCKED_POKEMON_HATS]
|
||||
commands[cmdHat = commands.length] = _INTL("Hat") if canPutHatOnPokemon(pkmn)
|
||||
if !pkmn.egg?
|
||||
if pkmn.mail
|
||||
commands[cmdMail = commands.length] = _INTL("Mail")
|
||||
|
||||
@@ -1282,7 +1282,7 @@ class PokemonSummary_Scene
|
||||
if pbBattleChallenge.currentChallenge == -1
|
||||
commands[cmdGiveItem = commands.length] = _INTL("Give item")
|
||||
commands[cmdTakeItem = commands.length] = _INTL("Take item") if @pokemon.hasItem?
|
||||
commands[cmdHat = commands.length] = _INTL("Hat") if !@pokemon.egg? && $game_switches[SWITCH_UNLOCKED_POKEMON_HATS]
|
||||
commands[cmdHat = commands.length] = _INTL("Hat") if canPutHatOnPokemon(@pokemon)
|
||||
end
|
||||
commands[cmdPokedex = commands.length] = _INTL("View Pokédex") if $Trainer.has_pokedex
|
||||
end
|
||||
|
||||
@@ -315,3 +315,7 @@ def randomizePlayerOutfit()
|
||||
$Trainer.hair = getFullHairId(hair_id,hair_color)
|
||||
|
||||
end
|
||||
|
||||
def canPutHatOnPokemon(pokemon)
|
||||
return !pokemon.egg? && !pokemon.isTripleFusion? && $game_switches[SWITCH_UNLOCKED_POKEMON_HATS]
|
||||
end
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
1736093802
|
||||
1736093802
|
||||
1736093807
|
||||
1736093811
|
||||
1736093815
|
||||
1736141405
|
||||
1736141411
|
||||
1736141416
|
||||
1736141419
|
||||
1736141430
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 38 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 831 KiB After Width: | Height: | Size: 829 KiB |
Reference in New Issue
Block a user