Commit 8f8410e9 by BellCodeEditor

save project

parent 7991eb1f
Showing with 3 additions and 3 deletions
......@@ -5,9 +5,9 @@ class Hero:
self.hp=hp
self.attack=attack
def upgrade(self):
kunkun1.level=self.level+1
kunkun1.hp=self.hp+50
kunkun1.attack=self.attack+10
self.level=self.level+1
self.hp=self.hp+50
self.attack=self.attack+10
kunkun1=Hero('kunkun1',300,20)
kunkun2=Hero('kunkun2',250,23)
kunkun3=Hero('kunkun3',5600,199)
......
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