Commit 0866eb0e by BellCodeEditor

save project

parent 29bd8e42
Showing with 13 additions and 1 deletions
...@@ -64,6 +64,17 @@ while True: ...@@ -64,6 +64,17 @@ while True:
print("请重新输入1或者是2") print("请重新输入1或者是2")
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