Skip to content

Instantly share code, notes, and snippets.

@happyDemon
Created March 4, 2017 08:34
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 happyDemon/40790582fc136861a906897fda9affb0 to your computer and use it in GitHub Desktop.
Save happyDemon/40790582fc136861a906897fda9affb0 to your computer and use it in GitHub Desktop.
Vue.js explained through Pokemon #5
power(otherPokemonType) {
return Math.floor(this.calculateStatsPower() * this.calculateStab() * this.calculateTypeEffect(otherPokemonType) * this.calculateCritical(otherPokemonType) * this.calculateOther() * this.getRandomFactor())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment