More or less standardised separator comments in the code

This commit is contained in:
Maruno17
2024-06-27 21:21:26 +01:00
parent 225549bfce
commit 509a414f37
198 changed files with 1907 additions and 1263 deletions

View File

@@ -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