mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
More or less standardised separator comments in the code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user