Commit 9ffa33ae by BellCodeEditor

save project

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