Commit 2d559b19 by BellCodeEditor

save project

parent 92a558d1
Showing with 9 additions and 3 deletions
class Mobs():
def __init__(self,attack,hp):
def __init__(self,level,attack,hp):
self.level=level
self.attack=attack
self.hp=hp
wooden=Mobs(500,250)
\ No newline at end of file
wooden=Mobs(1,500,250)
def upgrade():
wooden.level=wooden.level+1
wooden.attack=wooden.attack+50
wooden.hp=wooden.hp+100
upgrade()
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