Commit 80f1ce75 by BellCodeEditor

save project

parent ce9bbfe5
Showing with 5 additions and 8 deletions
...@@ -3,7 +3,7 @@ class Hero(object): ...@@ -3,7 +3,7 @@ class Hero(object):
def __init__(self, name): def __init__(self, name):
self.name = name self.name = name
self.level = 1 self.level = 1
self.hp = 250 self.hp = 300
self.attack = 40 self.attack = 40
self.jia=60 self.jia=60
self.max_hp = self.hp self.max_hp = self.hp
...@@ -56,13 +56,10 @@ while True: ...@@ -56,13 +56,10 @@ while True:
exit() exit()
else: else:
print("输入错误,请重新输入!") print("输入错误,请重新输入!")
continue
jkl=random.randint(1,3)
if jkl==1:
yase.cure()
else:
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