Created
March 4, 2017 08:33
-
-
Save happyDemon/1e7323e0cd1b356dbf377dc62921e348 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
calculateDamage(attackName) { | |
const attack = this.local.pokemon.attacks[attackName]; | |
const damage = new Damage(attack, this.local.pokemon, this.opponent.pokemon); | |
return damage.power(this.otherPokemon); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment