Commit d7efd24e by BellCodeEditor

save project

parent 42806917
Showing with 3 additions and 3 deletions
...@@ -8,11 +8,11 @@ class Hero: ...@@ -8,11 +8,11 @@ class Hero:
def upgrade(): def upgrade():
yase.level=yase.level+1 yase.level=yase.level+1
yase.hp=yase.hp+50 yase.hp=yase.hp+50
yase.attack=yse.attack+4 yase.attack=yase.attack+4
yase = Hero("idk",300,20) yase = Hero("idk",300,20)
print("idk'shp: ",yase.hp) print("idk'shp: ",yase.hp)
upgrade() upgrade()
upgrade() upgrade()
print("upgrade 2, idk hp is: ",houyi.hp) print("upgrade 2, idk hp is: ",yase.hp)
\ No newline at end of file \ 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