Commit 99559913 by BellCodeEditor

save project

parent a685abee
Showing with 42 additions and 0 deletions
class Player(Hero):
def_init_(self,helo_type,name)
\ No newline at end of file
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("高度业务顾炎武:"self.level,self.hp,self.attack)
houyi = Player("回复""发货人")
yase=Hero("华人")
print(30*'-')
print(' 电话费')
while True:
print("-"*30)
choice = input("反对和规范阳光房阳光房")
if choice == "q"
print("关于")
break
elif choice == "1":
houyi.combat(yase)
elif choice == "2":
houyi.cure
else:
print("担任副可以")
continue
status = random.randint(1,3)
if status == 1:
yase.cure()
else:
yase.combat(houyi)
\ 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