Commit 777f003d by BellCodeEditor

save project

parent 6c4ad7aa
Showing with 6 additions and 0 deletions
......@@ -8,6 +8,12 @@ class Hero(object):
def combat (self,enemy):#gj
info1= enemy.name+"对"+enemy.name+"发起进攻"
info2 = "造成了" + str(self.attack) + "真实伤害,"
if enemy.hp<=0
print(enemy.name+"阵亡")
e
else:enemy.hp>0
pass
info3=enemy.name+"还剩"+str(enemy.hp-enemy.attack)+"点伤害"
......
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