mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Added speed order viewer in battle debug menu, Pokemon#foreign? now defaults to comparing to the player
This commit is contained in:
@@ -17,6 +17,8 @@ poke_ball_failed - both for Ball Fetch
|
||||
View party screen for each trainer's team, be able to edit properties of Pokémon
|
||||
that aren't in battle.
|
||||
|
||||
Choose each battler's next action.
|
||||
|
||||
=end
|
||||
|
||||
#===============================================================================
|
||||
@@ -370,3 +372,22 @@ BattleDebugMenuCommands.register("mega_evolution", {
|
||||
end
|
||||
}
|
||||
})
|
||||
|
||||
BattleDebugMenuCommands.register("speed_order", {
|
||||
"parent" => "main",
|
||||
"name" => _INTL("Battler Speed Order"),
|
||||
"description" => _INTL("Show all battlers in order from fastest to slowest."),
|
||||
"always_show" => true,
|
||||
"effect" => proc { |battle|
|
||||
battlers = []
|
||||
battlers = battle.allBattlers.map { |b| [b, b.pbSpeed] }
|
||||
battlers.sort! { |a, b| b[1] <=> a[1] }
|
||||
commands = []
|
||||
battlers.each do |value|
|
||||
b = value[0]
|
||||
commands.push(sprintf("[%d] %s (speed: %d)", b.index, b.pbThis, value[1]))
|
||||
end
|
||||
pbMessage("\\ts[]" + _INTL("Battlers are listed from fastest to slowest. Speeds include modifiers."),
|
||||
commands, -1)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user