mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-07-23 08:07:02 +00:00
Update 6.8
This commit is contained in:
@@ -61,7 +61,7 @@ module GameData
|
||||
# @param exp [Integer] an Exp amount
|
||||
# @return [Integer] the level of a Pokémon that has the given Exp amount
|
||||
def level_from_exp(exp)
|
||||
return ArgumentError.new("Exp amount #{level} is invalid.") if !exp || exp < 0
|
||||
return ArgumentError.new("Exp amount #{exp} is invalid.") if !exp || exp < 0
|
||||
max = GrowthRate.max_level
|
||||
return max if exp >= maximum_exp
|
||||
for level in 1..max
|
||||
|
||||
Reference in New Issue
Block a user