Commit 926adcaf by BellCodeEditor

save project

parent 68d98c23
Showing with 8 additions and 7 deletions
......@@ -22,17 +22,19 @@ class Hero:
info = info1 +"\n" +info2+"\n" +info3
print(info)
exit()
class Player(Hero)
def __init__(self,name):
super().__init__(name)
class Player(Hero):
def __init__(self,name,hero_type):
super(Player, self).__init__(name)
self.hp = 200
self.attack = 50
self.hero_type = hero_type
print(self.name + " successfully created")
print(self.level + self.hp + self.attack)
yase = Hero("yase",300,20)
yeet = Hero("yeet",400, 30)
yase = Player("yase","noob")
yase.combat(yeet)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment