Created
March 4, 2017 08:34
-
-
Save happyDemon/40790582fc136861a906897fda9affb0 to your computer and use it in GitHub Desktop.
Vue.js explained through Pokemon #5
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
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