mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Added Settings::DISABLE_IVS_AND_EVS, added text replacements for gender symbols
This commit is contained in:
@@ -1085,11 +1085,13 @@ class Pokemon
|
||||
# @return [Integer] the maximum HP of this Pokémon
|
||||
def calcHP(base, level, iv, ev)
|
||||
return 1 if base == 1 # For Shedinja
|
||||
iv = ev = 0 if Settings::DISABLE_IVS_AND_EVS
|
||||
return (((base * 2) + iv + (ev / 4)) * level / 100).floor + level + 10
|
||||
end
|
||||
|
||||
# @return [Integer] the specified stat of this Pokémon (not used for total HP)
|
||||
def calcStat(base, level, iv, ev, nat)
|
||||
iv = ev = 0 if Settings::DISABLE_IVS_AND_EVS
|
||||
return (((((base * 2) + iv + (ev / 4)) * level / 100).floor + 5) * nat / 100).floor
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user