From 813f0ed57776fc1be9a986795489b421fd0f146b Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 31 Dec 2022 15:51:59 +0800
Subject: [PATCH] save project

---
 diy1.py | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/diy1.py b/diy1.py
index 034c74a..d453f03 100644
--- a/diy1.py
+++ b/diy1.py
@@ -52,5 +52,19 @@ print("      战斗开始")
 while True:
     print('-'*30)
     choice=input("请选择技能:1攻击/2治疗")
-   
+    if choice=="q":
+        print("游戏结束")
+        break
+    elif choice=="1":
+        houyi.combat(yase)
+    elif choice=="2":
+        houyi.cure()
+    else:
+        print("请重新输入1或2")
+        continue
+    num=random.randint(1,3)
+    if num==1:
+        yase.cure()
+    else:
+        yase.combat(houyi)
         
\ No newline at end of file
--
libgit2 0.25.0