Commit 11df2f7b by BellCodeEditor

save project

parent 1c888bfd
Showing with 8 additions and 1 deletions
...@@ -4,7 +4,14 @@ class Hero: ...@@ -4,7 +4,14 @@ class Hero:
self.level = 1 self.level = 1
self.hp = 250 self.hp = 250
self.attacK = 40 self.attacK = 40
self.max_hp = self self.max_hp = self.hp
def cure(self):
self.hp += 55
if self.hp = self.max_hp
self.hp = self.max_hp
print(self.name + '')
def combat(self,enemy): def combat(self,enemy):
info1 = self.name + self.name info1 = self.name + self.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