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::Battler
#=============================================================================
# Get move's user
#=============================================================================
#-----------------------------------------------------------------------------
# Get move's user.
#-----------------------------------------------------------------------------
def pbFindUser(_choice, _move)
return self
end
@@ -30,9 +34,10 @@ class Battle::Battler
return user
end
#=============================================================================
# Get move's default target(s)
#=============================================================================
#-----------------------------------------------------------------------------
# Get move's default target(s).
#-----------------------------------------------------------------------------
def pbFindTargets(choice, move, user)
preTarget = choice[3] # A target that was already chosen
targets = []
@@ -90,9 +95,10 @@ class Battle::Battler
return targets
end
#=============================================================================
# Redirect attack to another target
#=============================================================================
#-----------------------------------------------------------------------------
# Redirect attack to another target.
#-----------------------------------------------------------------------------
def pbChangeTargets(move, user, targets)
target_data = move.pbTarget(user)
return targets if @battle.switching # For Pursuit interrupting a switch
@@ -167,9 +173,10 @@ class Battle::Battler
return targets
end
#=============================================================================
# Register target
#=============================================================================
#-----------------------------------------------------------------------------
# Register target.
#-----------------------------------------------------------------------------
def pbAddTarget(targets, user, target, move, nearOnly = true, allowUser = false)
return false if !target || (target.fainted? && !move.targetsPosition?)
return false if !allowUser && target == user