Commit 9ebc59ce by BellCodeEditor

save project

parent 137f066c
Showing with 5 additions and 3 deletions
......@@ -9,12 +9,14 @@ houyi = Hero('后羿',240,30)
print("垭瑟",yase.hp)
print("后羿",yase.hp)
def upgrade(self):
def upgrade():
yase.levei=yase.levei+1
yase.hp=yase.hp+50
yase.attack=yase.attack
yase.attack=yase.attack+4
upgrade()
print(yase.levei)
yase = Hero("")
......
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