Commit e2f02c92 by BellCodeEditor

save project

parent ac4bb142
Showing with 5 additions and 3 deletions
......@@ -6,9 +6,10 @@ class Hero:
self.name=name
Yase=Hero(1,200,40,"Hero")
print(Yase.hp)
def ad():
Hero:
def ad():
Yase.level=Yase.level+1
Yase.hp=Yase.hp+50
Yase.attack=Yase.attack+5
ad()
Yase.attack=Yase.attack
ad()
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