Commit b8c0d5df by BellCodeEditor

save project

parent 4f95b2c3
Showing with 4 additions and 6 deletions
......@@ -4,10 +4,8 @@ class Hero:
self.name = name
self.attack = attack
yase = Hero("亚瑟",300,20)
def upgrade(self):
self.level=self.level+1
self.hp=self.hp+100
self.attack=self.attack+50
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+100
yase.attack=yase.attack+50
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