Commit 9f81aa8c by BellCodeEditor

save project

parent 978113e0
Showing with 5 additions and 1 deletions
......@@ -5,4 +5,8 @@ class Hero:
self.hp=hp
self.attack=attack
yase=Hero('yase',300,20)
def upgrage()
def upgrage():
yase.hp=yase.hp+50
yase.level=yase.level+1
yase.attack=yase.attack+5
upgrage()
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