Commit 06c49b45 by BellCodeEditor

auto save

parent 766f41af
Showing with 10 additions and 0 deletions
...@@ -8,6 +8,16 @@ yase=Hero('yase',300,20) ...@@ -8,6 +8,16 @@ yase=Hero('yase',300,20)
hy=Hero('hy',250,23) hy=Hero('hy',250,23)
k=Hero('K',5600,199) k=Hero('K',5600,199)
zhouzai=Hero('zhouzai',1,10000) zhouzai=Hero('zhouzai',1,10000)
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
upgrade()
upgrade()
print(yase.attack) print(yase.attack)
print(hy.attack) print(hy.attack)
print(k.attack) print(k.attack)
......
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