From 24ab7f8e53305c33ac6ba6441f0ea52cfa832130 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Sat, 14 Apr 2018 00:56:26 -0400 Subject: [PATCH] no logs --- monster_game/app.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/monster_game/app.js b/monster_game/app.js index 04d6726..ca9a709 100644 --- a/monster_game/app.js +++ b/monster_game/app.js @@ -31,21 +31,18 @@ var app = new Vue({ this.logs = []; }, playerAttack(){ - console.log("player Attack"); var dmg = this.getRandomInt(3, 10); this.mHP -= dmg; this.logs.unshift({isPlayer: true, text: 'Player hits monster for ' + dmg}); this.monsterAttack(); }, specialAttack(){ - console.log("special Attack"); var dmg = this.getRandomInt(10, 20); this.mHP -= dmg; this.logs.unshift({isPlayer: true, text: 'Player hits monster hard for ' + dmg}); this.monsterAttack(); }, heal(){ - console.log("heal"); var hp = 10 this.pHP = Math.min(100, this.pHP + 10 ); var log = @@ -57,7 +54,6 @@ var app = new Vue({ this.logs = []; }, monsterAttack(){ - console.log("attacked"); var dmg = this.getRandomInt(5, 12); var log = { isPlayer: false, text: 'monster hits player for ' + dmg} this.pHP -= dmg;