Commit 854bcf8f by BellCodeEditor

save project

parent b4694948
Showing with 9 additions and 0 deletions
...@@ -16,3 +16,12 @@ print("NB血量为:",NB.hp) ...@@ -16,3 +16,12 @@ print("NB血量为:",NB.hp)
upgrade() upgrade()
upgrade() upgrade()
print("NB血量为:",NB.hp) print("NB血量为:",NB.hp)
def upgrade():
DCM.level=DCM.level+1
DCM.hp=DCM.hp+20
DCM.attack=DCM.attack+5
print("DCM血量为:",DCM.hp)
upgrade()
upgrade()
print("DCM血量为:",DCM.hp)
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