Commit 9ffa33ae by BellCodeEditor

save project

parent a302e337
Showing with 5 additions and 4 deletions
......@@ -12,6 +12,8 @@ def upgrade():
self.name=name
self.hp=hp
self.attack=attack+4
upgrade()
print(yase.attack)
print(hy.attack)
\ No newline at end of file
yase=Hero('yase',300,20)
hy=Hero('hy',240,23)
yase.upgrade()
print(yase.hp)
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