Commit 11f63e29 by BellCodeEditor

save project

parent 11df2f7b
Showing with 6 additions and 1 deletions
...@@ -10,7 +10,7 @@ class Hero: ...@@ -10,7 +10,7 @@ class Hero:
self.hp += 55 self.hp += 55
if self.hp = self.max_hp if self.hp = self.max_hp
self.hp = self.max_hp self.hp = self.max_hp
print(self.name + '') print(self.name + '使用治疗,恢复60血量')
def combat(self,enemy): def combat(self,enemy):
...@@ -34,3 +34,7 @@ class Hero: ...@@ -34,3 +34,7 @@ class Hero:
self.attacK = 50 self.attacK = 50
self.hero_type = hero_type self.hero_type = hero_type
print('角色') print('角色')
print('-' * 30)
print( '战斗开始')
\ 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