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

@@ -20,7 +20,7 @@ class Trainer
return "#{trainer_type_name} #{@name}"
end
#=============================================================================
#-----------------------------------------------------------------------------
# Portion of the ID which is visible on the Trainer Card
def public_ID(id = nil)
@@ -41,7 +41,7 @@ class Trainer
return 0
end
#=============================================================================
#-----------------------------------------------------------------------------
def trainer_type_name; return GameData::TrainerType.get(self.trainer_type).name; end
def base_money; return GameData::TrainerType.get(self.trainer_type).base_money; end
@@ -53,7 +53,7 @@ class Trainer
def flags; return GameData::TrainerType.get(self.trainer_type).flags; end
def has_flag?(flag); return GameData::TrainerType.get(self.trainer_type).has_flag?(flag); end
#=============================================================================
#-----------------------------------------------------------------------------
def pokemon_party
return @party.find_all { |p| p && !p.egg? }
@@ -165,7 +165,7 @@ class Trainer
@party.each { |pkmn| pkmn.heal }
end
#=============================================================================
#-----------------------------------------------------------------------------
def initialize(name, trainer_type)
@trainer_type = GameData::TrainerType.get(trainer_type).id

View File

@@ -55,7 +55,7 @@ class Player < Trainer
@mystery_gifts = []
end
#=============================================================================
#-----------------------------------------------------------------------------
def character_ID=(value)
return if @character_ID == value
@@ -107,7 +107,7 @@ class Player < Trainer
return @badges.count { |badge| badge == true }
end
#=============================================================================
#-----------------------------------------------------------------------------
# (see Pokedex#seen?)
# Shorthand for +self.pokedex.seen?+.

View File

@@ -1,5 +1,10 @@
#===============================================================================
#
#===============================================================================
class Player < Trainer
#===============================================================================
# Represents the player's Pokédex.
#===============================================================================
class Pokedex
# @return [Array<Integer>] an array of accessible Dexes
# @see #refresh_accessible_dexes
@@ -33,7 +38,7 @@ class Player < Trainer
self.refresh_accessible_dexes
end
#===========================================================================
#---------------------------------------------------------------------------
# Sets the given species as seen in the Pokédex.
# @param species [Symbol, GameData::Species] species to set as seen