Commit 086b05e0 by BellCodeEditor

auto save

parent 88e54e73
Showing with 5 additions and 0 deletions
...@@ -6,6 +6,11 @@ class Hero: ...@@ -6,6 +6,11 @@ class Hero:
self.attack=fun2 self.attack=fun2
f=Hero('yase',300,20) f=Hero('yase',300,20)
f1=Hero('houyi',250,23) f1=Hero('houyi',250,23)
def upgrade():
f.level=f.level+1
f.hp=f.hp+50
f.attack=f.attack+4
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