subject

Make 2 monster subclasses: Dragon and ghosts, both of which inherit all of the properties of the Monster class. Both should have their "type" attribute updated to ‘dragon’ and ‘ghost’ respectively. Dragon and ghosts have the ability to level up! Every time a dragon gains 10 exp all of its attacks gain +1 damage. For Example, at 30 exp a dragon's attack will have each +3 damage total. This does NOT include any new attacks learned after gaining exp. For Ghosts, every time a Ghost gains 10exp it gains +5 to its max_hp and therefore current_hp. In order to implement this, change the win_fight and lose_fight methods within each subclass to account for these changes. There is no need to change the Monster class or the monster_fight function.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
What elements related to the release and success of the nes console do you see in modern console releases? what elements are no longer relevant to modern console gaming?
Answers: 3
question
Computers and Technology, 22.06.2019 02:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print?
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
Corey set up his presentation for delivery to his team.the information he had to convey was critical to their job performance.he knew he would need a lot of time to explain each point
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
What statement best describes operating systems? it’s possible for modern computers to function without operating systems. most operating systems are free or very inexpensive. operating systems are managed by the computer’s microprocessor (cpu). operating systems manage the computer’s random access memory (ram).
Answers: 1
You know the right answer?
Make 2 monster subclasses: Dragon and ghosts, both of which inherit all of the properties of the Mon...
Questions
question
Chemistry, 06.12.2020 21:00
Questions on the website: 13722360