mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
More or less standardised separator comments in the code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#===============================================================================
|
||||
# Hidden move handlers
|
||||
# Hidden move handlers.
|
||||
#===============================================================================
|
||||
module HiddenMoveHandlers
|
||||
CanUseMove = MoveHandlerHash.new
|
||||
@@ -64,7 +64,7 @@ def pbCheckHiddenMoveBadge(badge = -1, showmsg = true)
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Hidden move animation
|
||||
# Hidden move animation.
|
||||
#===============================================================================
|
||||
def pbHiddenMoveAnimation(pokemon)
|
||||
return false if !pokemon
|
||||
@@ -171,7 +171,7 @@ def pbHiddenMoveAnimation(pokemon)
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Cut
|
||||
# Cut.
|
||||
#===============================================================================
|
||||
def pbCut
|
||||
move = :CUT
|
||||
@@ -227,7 +227,7 @@ def pbSmashEvent(event)
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Dig
|
||||
# Dig.
|
||||
#===============================================================================
|
||||
HiddenMoveHandlers::CanUseMove.add(:DIG, proc { |move, pkmn, showmsg|
|
||||
escape = ($PokemonGlobal.escapePoint rescue nil)
|
||||
@@ -272,7 +272,7 @@ HiddenMoveHandlers::UseMove.add(:DIG, proc { |move, pokemon|
|
||||
})
|
||||
|
||||
#===============================================================================
|
||||
# Dive
|
||||
# Dive.
|
||||
#===============================================================================
|
||||
def pbDive
|
||||
map_metadata = $game_map.metadata
|
||||
@@ -420,7 +420,7 @@ HiddenMoveHandlers::UseMove.add(:DIVE, proc { |move, pokemon|
|
||||
})
|
||||
|
||||
#===============================================================================
|
||||
# Flash
|
||||
# Flash.
|
||||
#===============================================================================
|
||||
HiddenMoveHandlers::CanUseMove.add(:FLASH, proc { |move, pkmn, showmsg|
|
||||
next false if !pbCheckHiddenMoveBadge(Settings::BADGE_FOR_FLASH, showmsg)
|
||||
@@ -452,7 +452,7 @@ HiddenMoveHandlers::UseMove.add(:FLASH, proc { |move, pokemon|
|
||||
})
|
||||
|
||||
#===============================================================================
|
||||
# Fly
|
||||
# Fly.
|
||||
#===============================================================================
|
||||
def pbCanFly?(pkmn = nil, show_messages = false)
|
||||
return false if !pbCheckHiddenMoveBadge(Settings::BADGE_FOR_FLY, show_messages)
|
||||
@@ -513,7 +513,7 @@ HiddenMoveHandlers::UseMove.add(:FLY, proc { |move, pkmn|
|
||||
})
|
||||
|
||||
#===============================================================================
|
||||
# Headbutt
|
||||
# Headbutt.
|
||||
#===============================================================================
|
||||
def pbHeadbuttEffect(event = nil)
|
||||
pbSEPlay("Headbutt")
|
||||
@@ -579,7 +579,7 @@ HiddenMoveHandlers::UseMove.add(:HEADBUTT, proc { |move, pokemon|
|
||||
})
|
||||
|
||||
#===============================================================================
|
||||
# Rock Smash
|
||||
# Rock Smash.
|
||||
#===============================================================================
|
||||
def pbRockSmashRandomEncounter
|
||||
if $PokemonEncounters.encounter_triggered?(:RockSmash, false, false)
|
||||
@@ -629,7 +629,7 @@ HiddenMoveHandlers::UseMove.add(:ROCKSMASH, proc { |move, pokemon|
|
||||
})
|
||||
|
||||
#===============================================================================
|
||||
# Strength
|
||||
# Strength.
|
||||
#===============================================================================
|
||||
def pbStrength
|
||||
if $PokemonMap.strengthUsed
|
||||
@@ -680,7 +680,7 @@ HiddenMoveHandlers::UseMove.add(:STRENGTH, proc { |move, pokemon|
|
||||
})
|
||||
|
||||
#===============================================================================
|
||||
# Surf
|
||||
# Surf.
|
||||
#===============================================================================
|
||||
def pbSurf
|
||||
return false if !$game_player.can_ride_vehicle_with_follower?
|
||||
@@ -786,7 +786,7 @@ HiddenMoveHandlers::UseMove.add(:SURF, proc { |move, pokemon|
|
||||
})
|
||||
|
||||
#===============================================================================
|
||||
# Sweet Scent
|
||||
# Sweet Scent.
|
||||
#===============================================================================
|
||||
def pbSweetScent
|
||||
if $game_screen.weather_type != :None
|
||||
@@ -832,7 +832,7 @@ HiddenMoveHandlers::UseMove.add(:SWEETSCENT, proc { |move, pokemon|
|
||||
})
|
||||
|
||||
#===============================================================================
|
||||
# Teleport
|
||||
# Teleport.
|
||||
#===============================================================================
|
||||
HiddenMoveHandlers::CanUseMove.add(:TELEPORT, proc { |move, pkmn, showmsg|
|
||||
if !$game_map.metadata&.outdoor_map
|
||||
@@ -885,7 +885,7 @@ HiddenMoveHandlers::UseMove.add(:TELEPORT, proc { |move, pokemon|
|
||||
})
|
||||
|
||||
#===============================================================================
|
||||
# Waterfall
|
||||
# Waterfall.
|
||||
#===============================================================================
|
||||
# Starts the ascending of a waterfall.
|
||||
def pbAscendWaterfall
|
||||
|
||||
Reference in New Issue
Block a user