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
#=============================================================================
# Shifting a battler to another position in a battle larger than double
#=============================================================================
#-----------------------------------------------------------------------------
# Shifting a battler to another position in a battle larger than double.
#-----------------------------------------------------------------------------
def pbCanShift?(idxBattler)
return false if pbSideSize(0) <= 2 && pbSideSize(1) <= 2 # Double battle or smaller
idxOther = -1
@@ -25,9 +29,10 @@ class Battle
return true
end
#=============================================================================
# Calling at a battler
#=============================================================================
#-----------------------------------------------------------------------------
# Calling at a battler.
#-----------------------------------------------------------------------------
def pbRegisterCall(idxBattler)
@choices[idxBattler][0] = :Call
@choices[idxBattler][1] = 0
@@ -61,9 +66,10 @@ class Battle
end
end
#=============================================================================
# Choosing to Mega Evolve a battler
#=============================================================================
#-----------------------------------------------------------------------------
# Choosing to Mega Evolve a battler.
#-----------------------------------------------------------------------------
def pbHasMegaRing?(idxBattler)
if pbOwnedByPlayer?(idxBattler)
@mega_rings.each { |item| return true if $bag.has?(item) }
@@ -129,9 +135,10 @@ class Battle
return @megaEvolution[side][owner] == idxBattler
end
#=============================================================================
# Mega Evolving a battler
#=============================================================================
#-----------------------------------------------------------------------------
# Mega Evolving a battler.
#-----------------------------------------------------------------------------
def pbMegaEvolve(idxBattler)
battler = @battlers[idxBattler]
return if !battler || !battler.pokemon
@@ -174,9 +181,10 @@ class Battle
pbCalculatePriority(false, [idxBattler]) if Settings::RECALCULATE_TURN_ORDER_AFTER_MEGA_EVOLUTION
end
#=============================================================================
# Primal Reverting a battler
#=============================================================================
#-----------------------------------------------------------------------------
# Primal Reverting a battler.
#-----------------------------------------------------------------------------
def pbPrimalReversion(idxBattler)
battler = @battlers[idxBattler]
return if !battler || !battler.pokemon || battler.fainted?