Commit 8c6d25d9 by BellCodeEditor

save project

parent 44be0841
Showing with 3 additions and 3 deletions
...@@ -11,9 +11,9 @@ xiao = Hero("魈",21578,1991) ...@@ -11,9 +11,9 @@ xiao = Hero("魈",21578,1991)
# print(xiao.attack) # print(xiao.attack)
# print(leidianjiangjun.attack) # print(leidianjiangjun.attack)
def upgrade(): def upgrade():
xiao.level=level+1 xiao.level=xiao.level+1
xiao.attack=attack+186 xiao.attack=xiao.attack+186
xiao.hp=hp+598 xiao.hp=xiao.hp+598
upgrade() upgrade()
upgrade() upgrade()
print(xiao.level) print(xiao.level)
......
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