Commit ccb652c7 by BellCodeEditor

save project

parent f7ab7c99
Showing with 6 additions and 2 deletions
...@@ -4,4 +4,8 @@ class Hero: ...@@ -4,4 +4,8 @@ class Hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
\ No newline at end of file def ungrade(self)
self.level=self.level+1
self.hp=self.hp+300
self.attack+=4
\ 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