Commit 11f63e29 by BellCodeEditor

save project

parent 11df2f7b
Showing with 8 additions and 4 deletions
...@@ -9,8 +9,8 @@ class Hero: ...@@ -9,8 +9,8 @@ class Hero:
def cure(self): def cure(self):
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):
...@@ -33,4 +33,8 @@ class Hero: ...@@ -33,4 +33,8 @@ class Hero:
self.hp = 200 self.hp = 200
self.attacK = 50 self.attacK = 50
self.hero_type = hero_type self.hero_type = hero_type
print('角色') print('角色')
\ No newline at end of file
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