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
console.log(archer.greet());// Lilith offers a greeting in Elvish.
137
-
console.log(mage.takeDamage());// Bruce took damage.
138
-
console.log(swordsman.destroy());// Sir Mustachio was removed from the game.
139
-
140
-
141
-
// Stretch task:
142
-
// * Create Villian and Hero constructor functions that inherit from the Humanoid constructor function.
143
-
// * 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;
144
-
// * Create two new objects, one a villian and one a hero and fight it out with methods!
145
-
=======
146
78
constmage=newHumanoid({
147
79
createdAt: newDate(),
148
80
dimensions: {
@@ -304,4 +236,3 @@ function turnSimulator(hero, villain) {
0 commit comments