Commit ec4493c9 by BellCodeEditor

save project

parent d2a5789c
Showing with 3 additions and 3 deletions
......@@ -19,7 +19,7 @@ class Hero(object):
tili=tili-3
if self.hp>self.max_hp:
self.hp=self.max_hp
print(self.name+"使用了治疗,血量增加:", 60,",目前的血量为:",self.hp+"体力减少3,目前的体力为:",tili)
print(self.name+"使用了治疗,血量增加:60,目前的血量为:"+str(self.hp)+"体力减少3,目前的体力为:"+str(self.tili))
tili=tili+2
if tili>max_tili:
tili=max_tili
......@@ -174,7 +174,7 @@ class Hero(object):
self.bd=self.bd+3
if self.hp>self.max_hp:
self.hp=self.max_hp
info1 = self.name+"开启强化,血量增加:"+str(25) +",目前的血量为:"+self.hp+"被动值增加1点,目前的被动值为:"+self.bd+"体力减少4,目前的体力为:",self.tili
info1 = self.name+"开启强化,血量增加:25,目前的血量为:"+str(self.hp)+",被动值增加3点,目前的被动值为:"+str(self.bd)+",体力减少4,目前的体力为:"+str(self.tili)
print(info1)
tili=tili+2
if tili>max_tili:
......@@ -203,7 +203,7 @@ class Player(object):
self.tili=self.tili-3
if self.hp>self.max_hp:
self.hp=self.max_hp
print(self.name+"使用了治疗,血量增加:",50,",目前的血量为:",self.hp+"体力减少3,目前的体力为:",p_tili)
print(self.name+"使用了治疗,血量增加:50,目前的血量为:"+str(self.hp)+",体力减少3,目前的体力为:"+str(self.tili))
self.tili=self.tili+2
if self.tili>self.max_tili:
self.tili=self.max_tili
......
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