Commit bdbf00d3 by BellCodeEditor

auto save

parent 5b2e67c4
Showing with 2 additions and 0 deletions
...@@ -4,6 +4,8 @@ class Hero: ...@@ -4,6 +4,8 @@ class Hero:
selt.name = name selt.name = name
selt.hp = hp selt.hp = hp
selt.attack = attack selt.attack = attack
def upgrade():
yase.level = yase.level + 1
houyi = Hero("后羿",100,23) houyi = Hero("后羿",100,23)
yase = Hero("亚瑟",200,20) yase = Hero("亚瑟",200,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