Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 1, 2021 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a3bdbfab85b82e2abe6f1e9f7f9e5683 to your computer and use it in GitHub Desktop.
Save parzibyte/a3bdbfab85b82e2abe6f1e9f7f9e5683 to your computer and use it in GitHub Desktop.
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