mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Stopped U-turn switching if the battle is over, ensured animation spritesheet file extensions are removed from animation data, added Debug function to reload system cache, Pokémon debug menu now shows the Pokémon's status problem, changed mkxp.json to fix uncommon rendering problems
This commit is contained in:
@@ -1153,3 +1153,14 @@ DebugMenuCommands.register("invalidtiles", {
|
||||
pbDebugFixInvalidTiles
|
||||
}
|
||||
})
|
||||
|
||||
DebugMenuCommands.register("reloadsystemcache", {
|
||||
"parent" => "othermenu",
|
||||
"name" => _INTL("Reload System Cache"),
|
||||
"description" => _INTL("Refreshes the system's file cache. Use if you change a file while playing."),
|
||||
"always_show" => true,
|
||||
"effect" => proc {
|
||||
System.reload_cache
|
||||
pbMessage(_INTL("Done."))
|
||||
}
|
||||
})
|
||||
|
||||
@@ -83,16 +83,20 @@ PokemonDebugMenuCommands.register("setstatus", {
|
||||
ids = [:NONE]
|
||||
GameData::Status.each do |s|
|
||||
next if s.id == :NONE
|
||||
commands.push(s.name)
|
||||
commands.push(_INTL("Set {1}", s.name))
|
||||
ids.push(s.id)
|
||||
end
|
||||
loop do
|
||||
cmd = screen.pbShowCommands(_INTL("Set {1}'s status.", pkmn.name), commands, cmd)
|
||||
msg = _INTL("Current status: {1}", GameData::Status.get(pkmn.status).name)
|
||||
if pkmn.status == :SLEEP
|
||||
msg = _INTL("Current status: {1} (turns: {2})",
|
||||
GameData::Status.get(pkmn.status).name, pkmn.statusCount)
|
||||
end
|
||||
cmd = screen.pbShowCommands(msg, commands, cmd)
|
||||
break if cmd < 0
|
||||
case cmd
|
||||
when 0 # Cure
|
||||
pkmn.heal_status
|
||||
screen.pbDisplay(_INTL("{1}'s status was cured.", pkmn.name))
|
||||
screen.pbRefreshSingle(pkmnid)
|
||||
else # Give status problem
|
||||
count = 0
|
||||
|
||||
Reference in New Issue
Block a user