Commit e9461696 by BellCodeEditor

save project

parent 84eab2f1
Showing with 6 additions and 2 deletions
...@@ -17,4 +17,8 @@ def upgrade(): ...@@ -17,4 +17,8 @@ def upgrade():
upgrade() upgrade()
upgrade() upgrade()
print("升级连词后,亚瑟的血量为:"yase.hp) print("升级连词后,亚瑟的血量为:"yase.hp)
\ No newline at end of file def upgrade(self):
self.level=self.level+1
self.hp=self.hp+50
self.attack=self.attack+4
\ 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