Added Settings::DISABLE_IVS_AND_EVS, added text replacements for gender symbols

This commit is contained in:
Maruno17
2023-07-17 19:28:05 +01:00
parent f576db7c0b
commit 6053363715
4 changed files with 21 additions and 14 deletions

View File

@@ -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