Commit 4e012dd4 by BellCodeEditor

save project

parent 1ca27936
Showing with 5 additions and 4 deletions
...@@ -6,8 +6,8 @@ class Hero: ...@@ -6,8 +6,8 @@ class Hero:
self.level=level self.level=level
yase=Hero("yase",74574774474664,9999999999,36545) yase=Hero("yase",74574774474664,9999999999,36545)
def upgrade(): def upgrade():
yase.level=yase.level+1 self.level=yase.level+1
yase.Hp=yase.Hp+50 self.Hp=yase.Hp+50
yase.attack=yase.attack+4 self.attack=yase.attack+4
upgrade() yase=Hero
print(yase.Hp) print(yase.Hp)
\ No newline at end of file
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