Commit fa5f6b0b by BellCodeEditor

save project

parent df32e9e4
Showing with 8 additions and 11 deletions
......@@ -4,15 +4,12 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
yase=Hero("yase",300,20)
def yase.hp=upgrade():
yase.level= yase.level+1
yase.hp=yase.hp+100
yase.hp=yase.hp+100000
upgrade()
upgrade()
upgrade()
upgrade()
print()
\ No newline at end of file
def upgrade(self):
self.level= self.level+1
self.hp=self.hp+100
self.hp=self.hp+100000
yase=Hero("yase",300,20)
\ 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