Commit 55f27fdf by BellCodeEditor

save project

parent 2997fc3b
Showing with 23 additions and 2 deletions
......@@ -74,4 +74,5 @@ def cure(self):
self.hp = self.hp + 60
if self.hp > self.max_hp:
self.hp = self.max_hp
print(self.name+"使用了治疗,血量增加:", 60,",目前的血量为:",self.hp)
\ No newline at end of file
print(self.name+"使用了治疗,血量增加:", 60,",目前的血量为:",self.hp)
\ No newline at end of file
print('-'*30)
print(' 战斗开始')
while True:
elif a=="q":
print('游戏结束')
break
if choice == '1':
houyi.combat(yase)
elif choice == '2':
houyi.cure()
else:
print('重输!')
continue
b=random.randint(1,3)
if b==3:
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