Commit 42c5da45 by BellCodeEditor

save project

parent 28cb4451
Showing with 1 additions and 1 deletions
......@@ -5,7 +5,7 @@ class Hero:
self.hp=hp
self.attack=attack
def upgrade(self):
self.level=yase.level=1
self.level=yase.level+1
self.hp=yase.hp+50
self.attack=yase.attack+4
houyi = Hero("后裔",300,20)
......
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