Commit 2cd85fd3 by BellCodeEditor

save project

parent 0ce3c899
Showing with 7 additions and 2 deletions
......@@ -42,4 +42,10 @@ print('-' * 30)
print(' 战斗开始')
while True:
print("-"*30)
choice = input("请选择释放英雄技能(1攻击/2治疗):")
\ No newline at end of file
choice = input("请选择释放英雄技能(1攻击/2治疗):")
def cure(self):
blood = random.randing(30,50)
self.hp = self.hp+blood
if self.hp > blood
self.hp + self.max_hp:
print(self.name + "使用了治疗,血量添加:",blood,",目前血量为:10000000000000000000000000000000")
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