Commit 95a8a84d by BellCodeEditor

save project

parent 409c2c5a
Showing with 4 additions and 4 deletions
...@@ -6,10 +6,10 @@ class Hero: ...@@ -6,10 +6,10 @@ class Hero:
self.atk=atk self.atk=atk
self.defn=defn self.defn=defn
def upL(self): def upL(self):
self.houyi.level+=1 self.level+=1
self.houyi.hp+=250 self.hp+=250
self.ouyi.atk+=100 self.atk+=100
self.houyi.defn+=50 self.defn+=50
houyi = Hero("后羿",1,500,100,40) houyi = Hero("后羿",1,500,100,40)
houyi.upL() houyi.upL()
......
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