Commit 4d4aff09 by BellCodeEditor

save project

parent f27ecd32
Showing with 6 additions and 1 deletions
...@@ -46,6 +46,10 @@ print("-" * 30 + ''' ...@@ -46,6 +46,10 @@ print("-" * 30 + '''
''' + " 战斗开始"); ''' + " 战斗开始");
while 1: while 1:
Hero.combat() = input("请选择战斗(1)或治疗(2)"); temp = input("请选择战斗(1)或治疗(2)");
if temp == "1":
Player.combat(player, enemy); Player.combat(player, enemy);
elif temp == "2":
Player.cure(player);
Hero.combat(enemy, player); Hero.combat(enemy, player);
\ 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