Commit 3d641bb6 by BellCodeEditor

save project

parent 797a2eb0
Showing with 3 additions and 3 deletions
......@@ -4,9 +4,9 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
if a level=level+1:
self.hp=hp+50
self.attack=attack+5
def upgrade(self):
self.hp=self.hp+50
self.attack=self.attack+5
yase=Hero("yase",300,20)
houyi=Hero("houyi",250,23)
k=Hero('k',5600,200)
......
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