Commit e93df1ae by BellCodeEditor

save project

parent 5c0e3208
Showing with 2 additions and 5 deletions
...@@ -5,7 +5,6 @@ class Hero(object): ...@@ -5,7 +5,6 @@ class Hero(object):
self.hp = 250 self.hp = 250
self.attack = 40 self.attack = 40
self.max_hp = self.hp self.max_hp = self.hp
self def cure(self)
print(self.name+"使用了治疗,血量增加:", 60,",目前的血量为:",self.hp) print(self.name+"使用了治疗,血量增加:", 60,",目前的血量为:",self.hp)
def combat(self, enemy): # 普通攻击 def combat(self, enemy): # 普通攻击
...@@ -34,6 +33,4 @@ class Player(Hero): ...@@ -34,6 +33,4 @@ class Player(Hero):
houyi = Player("射手", "后羿") houyi = Player("射手", "后羿")
yase = Hero("垭瑟") yase = Hero("垭瑟")
print("_"*30) print('_'*30)
print( '战斗开始') \ No newline at end of file
print("_"*30)
\ 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