You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -143,7 +232,28 @@ console.log(mage.takeDamage()); // Bruce took damage.
143
232
console.log(swordsman.destroy());// Sir Mustachio was removed from the game.
144
233
145
234
235
+
console.log("A new battle is about to begin")
236
+
console.log(`The match ${jonathan.name} vs ${failure.name} has begun.`);
237
+
console.log(`The villian has the following weapons ${failure.weapons}`);
238
+
console.log(`The hero has the following weapons ${jonathan.weapons}`);
239
+
console.log(`The villian has the following extra attribute ${failure.badBreath} breath`);
240
+
console.log(`The villian speaks the following language ${failure.language}`);
241
+
console.log(`The hero speaks the following language ${jonathan.language}`);
242
+
console.log(failure.evilLaugh());
243
+
console.log(`${jonathan.name} has been reduced, ${jonathan.name} now has ${failure.opponentHealth}`);
244
+
console.log(jonathan.studyHard());
245
+
console.log(`${failure.name} has been reduced, ${failure.name} now has ${failure.opponentHealth}`);
246
+
console.log(jonathan.workHard());
247
+
console.log(`${failure.name} has been reduced, ${failure.name} now has ${jonathan.opponentHealth}`);
248
+
console.log(jonathan.flawlessVictory());
249
+
console.log(`${failure.name} has been reduced, ${jonathan.opponentHealth} now has ${jonathan.opponentHealth}`);
250
+
console.log(`${jonathan.name} WINS GETS A NEW JOB WITH HIGH PAY!`);
251
+
146
252
// Stretch task:
147
253
// * Create Villian and Hero constructor functions that inherit from the Humanoid constructor function.
148
254
// * Give the Hero and Villians different methods that could be used to remove health points from objects which could result in destruction if health gets to 0 or drops below 0;
149
-
// * Create two new objects, one a villian and one a hero and fight it out with methods!
255
+
// * Create two new objects, one a villian and one a hero and fight it out with methods!
0 commit comments