Commit fa5f6b0b by BellCodeEditor

save project

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