Commit f760c4f9 by BellCodeEditor

save project

parent e39f5fa5
Showing with 3 additions and 3 deletions
...@@ -7,8 +7,8 @@ class Hero(object): ...@@ -7,8 +7,8 @@ class Hero(object):
self.name = name self.name = name
def upgrade(): def upgrade():
yase.level = yase.level +1 self.level = self.level +1
yase.hp = yase.hp +50 self.hp = self.hp +50
yase.attack = yase.attack +4 self.attack = self.attack +4
yase = Hero(1,300,20,'yase') yase = Hero(1,300,20,'yase')
hoyi = Hero(1,250,23,'hoyi') hoyi = Hero(1,250,23,'hoyi')
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