Commit 0866eb0e by BellCodeEditor

save project

parent 29bd8e42
Showing with 12 additions and 0 deletions
...@@ -65,5 +65,16 @@ while True: ...@@ -65,5 +65,16 @@ while True:
status= random.randint(1,3) status= random.randint(1,3)
if status ==1: if status ==1:
yase.cure() yase.cure()
class Player(Hero):
def __init__(self,hero_type,name):
super().__init__(name)
self.hp=200
self.attack=50
self.max_hp=self.hp
self.hero_type=hero_type
print("角色"+self.name+"创造成功,英雄类型为:",self.hero_type)
print("当前等级")
\ 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