Commit 688122b9 by BellCodeEditor

save project

parent ed602fac
Showing with 6 additions and 2 deletions
......@@ -6,6 +6,10 @@ class Hero:
self.attack=attack
y=Hero("1",300,20)
h=Hero("2",250,23)
print(y.hp)
def upgrade():
y.level=y.level+1
y.hp=y.hp+50
y.attack=y.attack+4
upgrade()
upgrade()
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