-
-
Save parzibyte/a3bdbfab85b82e2abe6f1e9f7f9e5683 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def obtener_hp(base): | |
resultado_parentesis = (base+IV)*2+((math.sqrt(EV))/4) | |
return (resultado_parentesis * LEVEL / 100) + LEVEL+10 | |
def obtener_other_stat(base): | |
resultado_parentesis = (base+IV)*2+((math.sqrt(EV))/4) | |
return (resultado_parentesis * LEVEL / 100)+5 | |
def obtener_damage(power, ataque, defensa): | |
resultado_parentesis_interior = ((2*LEVEL)/5)+2 | |
numero_aleatorio = random.uniform(0.85, 1.0) | |
resultado_parentesis = ( | |
(resultado_parentesis_interior * power * (ataque/defensa)) / 50) + 2 | |
return resultado_parentesis * numero_aleatorio | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment