Commit ffa7db28 by BellCodeEditor

save project

parent a6f543ea
Showing with 6 additions and 1 deletions
...@@ -4,6 +4,11 @@ class Hero(): ...@@ -4,6 +4,11 @@ class Hero():
self.name = name self.name = name
self.hp = hp self.hp = hp
self.attack = attack self.attack = attack
kkkkkkkklk def upgrade(self):
self.level = self.level+1
seif.hp = self.hp+50
self.attack = self.attack+4
yase = Hero("yase",300,20) yase = Hero("yase",300,20)
houyi = Hero("hoyi",250,23) houyi = Hero("hoyi",250,23)
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