mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Added conversion of berry plant data, removed all uses of ID numbers for abilities and berry plants, fixed mulch not being consumed, removed use of ID numbers in map of moves to animation IDs
This commit is contained in:
@@ -456,7 +456,10 @@ 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.count).id if !@nature
|
||||
if !@nature
|
||||
idx = @personalID % GameData::Nature.count
|
||||
@nature = GameData::Nature.get(GameData::Nature.keys[idx]).id
|
||||
end
|
||||
return GameData::Nature.try_get(@nature)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user