Commit dffc6421 by BellCodeEditor

save project

parent f7dc00e8
Showing with 4 additions and 4 deletions
......@@ -40,7 +40,7 @@ class Player(Hero):
print('-'*30)
print(' 战斗开始')
def cure(self):
c=random.randint(35,50)
c=random.randint(-999,999)
self.hp+=c
if self.hp>self.max_hp:
self.hp=self.max_hp
......@@ -52,9 +52,9 @@ while True:
print('-'*30)
a=input('请输入技能:1攻击/2回复')
if int(a)==1:
yase.combat(yase)
houyi.combat(yase)
elif int(a)==2:
yase.cure()
houyi.cure()
elif int(a)==q:
break
else:
......@@ -63,7 +63,7 @@ while True:
if b==3:
yase.cure()
else:
yase.combat(yase)
yase.combat(houyi)
......
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