mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
More or less standardised separator comments in the code
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
class Battle
|
||||
#=============================================================================
|
||||
# Clear commands
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Clear commands.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbClearChoice(idxBattler)
|
||||
@choices[idxBattler] = [] if !@choices[idxBattler]
|
||||
@choices[idxBattler][0] = :None
|
||||
@@ -22,16 +26,18 @@ class Battle
|
||||
pbClearChoice(idxBattler)
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Use main command menu (Fight/Pokémon/Bag/Run)
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Use main command menu (Fight/Pokémon/Bag/Run).
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbCommandMenu(idxBattler, firstAction)
|
||||
return @scene.pbCommandMenu(idxBattler, firstAction)
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Check whether actions can be taken
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Check whether actions can be taken.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbCanShowCommands?(idxBattler)
|
||||
battler = @battlers[idxBattler]
|
||||
return false if !battler || battler.fainted?
|
||||
@@ -53,9 +59,10 @@ class Battle
|
||||
return usable
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Use sub-menus to choose an action, and register it if is allowed
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Use sub-menus to choose an action, and register it if is allowed.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
# Returns true if a choice was made, false if cancelled.
|
||||
def pbFightMenu(idxBattler)
|
||||
# Auto-use Encored move or no moves choosable, so auto-use Struggle
|
||||
@@ -168,9 +175,10 @@ class Battle
|
||||
end
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Command phase
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Command phase.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbCommandPhase
|
||||
@command_phase = true
|
||||
@scene.pbBeginCommandPhase
|
||||
|
||||
Reference in New Issue
Block a user