Commit 031c7333 by BellCodeEditor

save project

parent 619260d5
Showing with 12 additions and 0 deletions
...@@ -20,3 +20,14 @@ print(lan.hp) ...@@ -20,3 +20,14 @@ print(lan.hp)
upgrade() upgrade()
upgrade() upgrade()
print(lan.hp) print(lan.hp)
def upgrade():
anqila.level=anqila.level+1
anqila.hp=lan.hp=anqila.hp+50
anqila.attack=anqila.attack+3
anqila=Hero("anqila",300,25)
print(anqila.attack)
upgrade()
upgrade()
print(lan.attack)
\ No newline at end of file
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