Commit 3c5bb171 by BellCodeEditor

save project

parent e5d8b1c3
Showing with 5 additions and 0 deletions
......@@ -5,6 +5,11 @@ class Hero:
self.hp = 250
self.attack = 40
self.max_hp = self.hp
def core(seif):
self.hp+=60
if self.hp>self.max_hp:
self.hp=self.max_hp
print(self.name+"使用了治疗:",60,"血是:",self.hp)
def combat(self, enemy): # 普通攻击
info1 = self.name+"对"+enemy.name+"发起进攻,"
......
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