mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixed up code added by previous commit, improved scene closings when using Fly
This commit is contained in:
@@ -115,14 +115,16 @@ class PokemonPauseMenu
|
||||
cmdQuit = -1
|
||||
cmdEndGame = -1
|
||||
if $Trainer.has_pokedex && $Trainer.pokedex.accessible_dexes.length > 0
|
||||
commands[cmdPokedex = commands.length] = _INTL("Pokédex")
|
||||
commands[cmdPokedex = commands.length] = _INTL("Pokédex")
|
||||
end
|
||||
commands[cmdPokemon = commands.length] = _INTL("Pokémon") if $Trainer.party_count > 0
|
||||
commands[cmdBag = commands.length] = _INTL("Bag") if !pbInBugContest?
|
||||
commands[cmdPokegear = commands.length] = _INTL("Pokégear") if $Trainer.has_pokegear
|
||||
# Any reasonable game will have either have the Town Map as an item or in the Pokegear. Never both at once.
|
||||
commands[cmdTownMap = commands.length] = _INTL("Town Map") if $PokemonBag.pbHasItem?(:TOWNMAP) && !$Trainer.has_pokegear
|
||||
commands[cmdTrainer = commands.length] = $Trainer.name
|
||||
commands[cmdPokemon = commands.length] = _INTL("Pokémon") if $Trainer.party_count > 0
|
||||
commands[cmdBag = commands.length] = _INTL("Bag") if !pbInBugContest?
|
||||
if $Trainer.has_pokegear
|
||||
commands[cmdPokegear = commands.length] = _INTL("Pokégear")
|
||||
elsif $bag.has?(:TOWNMAP)
|
||||
commands[cmdTownMap = commands.length] = _INTL("Town Map")
|
||||
end
|
||||
commands[cmdTrainer = commands.length] = $Trainer.name
|
||||
if pbInSafari?
|
||||
if Settings::SAFARI_STEPS <= 0
|
||||
@scene.pbShowInfo(_INTL("Balls: {1}",pbSafariState.ballcount))
|
||||
@@ -130,7 +132,7 @@ class PokemonPauseMenu
|
||||
@scene.pbShowInfo(_INTL("Steps: {1}/{2}\nBalls: {3}",
|
||||
pbSafariState.steps, Settings::SAFARI_STEPS, pbSafariState.ballcount))
|
||||
end
|
||||
commands[cmdQuit = commands.length] = _INTL("Quit")
|
||||
commands[cmdQuit = commands.length] = _INTL("Quit")
|
||||
elsif pbInBugContest?
|
||||
if pbBugContestState.lastPokemon
|
||||
@scene.pbShowInfo(_INTL("Caught: {1}\nLevel: {2}\nBalls: {3}",
|
||||
@@ -140,13 +142,13 @@ class PokemonPauseMenu
|
||||
else
|
||||
@scene.pbShowInfo(_INTL("Caught: None\nBalls: {1}",pbBugContestState.ballcount))
|
||||
end
|
||||
commands[cmdQuit = commands.length] = _INTL("Quit Contest")
|
||||
commands[cmdQuit = commands.length] = _INTL("Quit Contest")
|
||||
else
|
||||
commands[cmdSave = commands.length] = _INTL("Save") if $game_system && !$game_system.save_disabled
|
||||
commands[cmdSave = commands.length] = _INTL("Save") if $game_system && !$game_system.save_disabled
|
||||
end
|
||||
commands[cmdOption = commands.length] = _INTL("Options")
|
||||
commands[cmdDebug = commands.length] = _INTL("Debug") if $DEBUG
|
||||
commands[cmdEndGame = commands.length] = _INTL("Quit Game")
|
||||
commands[cmdOption = commands.length] = _INTL("Options")
|
||||
commands[cmdDebug = commands.length] = _INTL("Debug") if $DEBUG
|
||||
commands[cmdEndGame = commands.length] = _INTL("Quit Game")
|
||||
loop do
|
||||
command = @scene.pbShowCommands(commands)
|
||||
if cmdPokedex>=0 && command==cmdPokedex
|
||||
@@ -212,17 +214,16 @@ class PokemonPauseMenu
|
||||
screen.pbStartScreen
|
||||
($PokemonTemp.flydata) ? @scene.pbEndScene : @scene.pbRefresh
|
||||
}
|
||||
if pbFlyToNewLocation
|
||||
$game_temp.in_menu = false
|
||||
return
|
||||
end
|
||||
return if pbFlyToNewLocation
|
||||
elsif cmdTownMap>=0 && command==cmdTownMap
|
||||
pbShowMap(-1, false)
|
||||
($PokemonTemp.flydata) ? @scene.pbEndScene : @scene.pbRefresh
|
||||
if pbFlyToNewLocation
|
||||
$game_temp.in_menu = false
|
||||
return
|
||||
end
|
||||
pbFadeOutIn {
|
||||
scene = PokemonRegionMap_Scene.new(-1, false)
|
||||
screen = PokemonRegionMapScreen.new(scene)
|
||||
ret = screen.pbStartScreen
|
||||
$PokemonTemp.flydata = ret if ret
|
||||
($PokemonTemp.flydata) ? @scene.pbEndScene : @scene.pbRefresh
|
||||
}
|
||||
return if pbFlyToNewLocation
|
||||
elsif cmdTrainer>=0 && command==cmdTrainer
|
||||
pbPlayDecisionSE
|
||||
pbFadeOutIn {
|
||||
|
||||
Reference in New Issue
Block a user