Commit b967a6c7 by BellCodeEditor

save project

parent 3d405caf
Showing with 4 additions and 5 deletions
...@@ -5,8 +5,8 @@ class Hero: ...@@ -5,8 +5,8 @@ class Hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero('yase',300,20) yase=Hero('yase',300,20)
hy=Hero('hy',250,23) def upgrade():
x=Hero('x',5600,99) yase.level=level+1
yase.hp=hp+50
yase.attack=attack+4
print(yase.hp) print(yase.hp)
print(hy.hp)
print(x.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