Skip to content

Commit 6940969

Browse files
assignment completed
1 parent 543408a commit 6940969

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

‎assignments/prototypes.js‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -190,42 +190,42 @@ Humanoid.prototype.greet = function (){
190190
}
191191
}
192192

193-
const darknessFalls = new Villian({
193+
const Meowth = new Villian({
194194
createdAt: new Date(),
195195
dimensions: {
196196
length: 10,
197197
width: 20,
198-
height: 400,
198+
height: 40,
199199
},
200200
hp: 66,
201-
name: 'Lucifer',
202-
faction: 'Underworld',
201+
name: 'Meowth',
202+
faction: 'Team Rocket',
203203
weapons: [
204-
'Hell Hounds',
205-
'Sicle',
204+
'Scratch',
205+
'Bite',
206206
],
207-
language: 'Demon',
208-
attack: 10,
209-
type: "villain",
207+
language: 'English',
208+
attack: 8,
209+
type: "Villain",
210210
});
211211

212-
const Harmony = new Hero({
212+
const Pikachu = new Hero({
213213
createdAt: new Date(),
214214
dimensions: {
215215
length: 1,
216216
width: 2,
217-
height: 100,
217+
height: 10,
218218
},
219219
hp: 50,
220-
name: 'Lance',
221-
faction: 'Heavens',
220+
name: 'Pickachu',
221+
faction: 'Pallet Town',
222222
weapons: [
223-
'Trumpet of Truth',
224-
'Staff',
223+
'Thunder',
224+
'Head Butt',
225225
],
226-
language: 'Angel',
227-
attack: 8,
226+
language: 'Pika-Pika',
227+
attack: 10,
228228
type: "hero",
229229
});
230230

231-
console.log(darknessFalls.fight(Harmony));
231+
console.log(Meowth.fight(Pikachu));

0 commit comments

Comments
 (0)