mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Added def count to all GameData variants, and one that returns the number of species for Species, removed all uses of ID numbers for GameData::Status, made more use of GameData::X.keys
This commit is contained in:
@@ -456,7 +456,7 @@ class Pokemon
|
||||
|
||||
# @return [GameData::Nature, nil] a Nature object corresponding to this Pokémon's nature
|
||||
def nature
|
||||
@nature = GameData::Nature.get(@personalID % (GameData::Nature::DATA.keys.length / 2)).id if !@nature
|
||||
@nature = GameData::Nature.get(@personalID % GameData::Nature.count).id if !@nature
|
||||
return GameData::Nature.try_get(@nature)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user