Added Gen 9 PBS files

This commit is contained in:
Maruno17
2024-06-08 15:41:34 +01:00
parent b86d5b5b57
commit 6c3d9e77ad
23 changed files with 54947 additions and 17361 deletions

View File

@@ -75,6 +75,8 @@ class Pokemon
attr_accessor :fused
# @return [Integer] this Pokémon's personal ID
attr_accessor :personalID
# A number used by certain species to evolve.
attr_writer :evolution_counter
# Used by Galarian Yamask to remember that it took sufficient damage from a
# battle and can evolve.
attr_accessor :ready_to_evolve
@@ -114,6 +116,11 @@ class Pokemon
return GameData::Species.get_species_form(@species, form_simple)
end
def evolution_counter
@evolution_counter ||= 0
return @evolution_counter
end
#=============================================================================
# Species and form
#=============================================================================
@@ -971,6 +978,7 @@ class Pokemon
#=============================================================================
# Evolution checks
#=============================================================================
# Checks whether this Pokemon can evolve because of levelling up.
# @return [Symbol, nil] the ID of the species to evolve into
def check_evolution_on_level_up