mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 23:24:59 +00:00
More or less standardised separator comments in the code
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
class Battle::Battler
|
||||
#=============================================================================
|
||||
# Change HP
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Change HP.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbReduceHP(amt, anim = true, registerDamage = true, anyAnim = true)
|
||||
amt = amt.round
|
||||
amt = @hp if amt > @hp
|
||||
@@ -93,9 +97,10 @@ class Battle::Battler
|
||||
@battle.pbEndPrimordialWeather
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Move PP
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Move PP.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbSetPP(move, pp)
|
||||
move.pp = pp
|
||||
# No need to care about @effects[PBEffects::Mimic], since Mimic can't copy
|
||||
@@ -118,9 +123,10 @@ class Battle::Battler
|
||||
pbSetPP(move, move.pp - 1) if move.pp > 0
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Change type
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Change type.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbChangeTypes(newType)
|
||||
if newType.is_a?(Battle::Battler)
|
||||
newTypes = newType.pbTypes
|
||||
@@ -147,9 +153,10 @@ class Battle::Battler
|
||||
@effects[PBEffects::Roost] = false
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
# Forms
|
||||
#=============================================================================
|
||||
#-----------------------------------------------------------------------------
|
||||
# Forms.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
def pbChangeForm(newForm, msg)
|
||||
return if fainted? || @effects[PBEffects::Transform] || @form == newForm
|
||||
oldForm = @form
|
||||
|
||||
Reference in New Issue
Block a user