Changed how Pokémon markings are recorded, and allowed variants of each mark (e.g. alternate colours)

This commit is contained in:
Maruno17
2021-12-06 23:26:18 +00:00
parent 5a81d447d1
commit a858408951
5 changed files with 150 additions and 38 deletions

View File

@@ -40,7 +40,7 @@ class Pokemon
attr_accessor :happiness
# @return [Symbol] the item ID of the Poké Ball this Pokémon is in
attr_accessor :poke_ball
# @return [Integer] this Pokémon's markings, one bit per marking
# @return [Array<Integer>] this Pokémon's markings, one value per mark
attr_accessor :markings
# @return [Hash<Integer>] a hash of IV values for HP, Atk, Def, Speed, Sp. Atk and Sp. Def
attr_accessor :iv
@@ -1171,7 +1171,7 @@ class Pokemon
@name = nil
@happiness = species_data.happiness
@poke_ball = :POKEBALL
@markings = 0
@markings = []
@iv = {}
@ivMaxed = {}
@ev = {}