Commit 9377bdf5 by BellCodeEditor

auto save

parent 43f88611
Showing with 7 additions and 0 deletions
......@@ -11,3 +11,10 @@ print(yase.attack)
print(chengyaojin.attack)
def upgrade(self):
self.level = chengyaojin.level + 1
self.hp = chengyaojin.hp + 50
self.attack = chengyaojin.attack + 5
chengyaojin.upgrade()
print(chengyaojin.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