Commit 94e00aef by BellCodeEditor

save project

parent 3e505f73
Showing with 11 additions and 3 deletions
......@@ -7,10 +7,18 @@ class Hero:
ys=Hero('ys',300,20)
hy=Hero('hy',250,23)
sq=Hero('sq',1000000000,23000000000)
print(sq.hp)
def upys():
ys.level+=1
ys.hp+=50
ys.attack+=4
upys()
print(ys.hp)
\ No newline at end of file
def uphy():
hy.level+=1
hy.hp+=50
hy.attack+=4
uphy()
def upsq():
sq.level+=1
sq.hp+=50
sq.attack+=4
upsq()
\ 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