Commit 5b7ec919 by BellCodeEditor

save project

parent 03424975
Showing with 6 additions and 0 deletions
......@@ -4,5 +4,10 @@ class Hero:
self.name = name
self.hp = hp
self.attack = attack
def upgrade():
yase.hp += 50
yase.attack += 20
yase.level += 1
yase = Hero("yase",300,20)
houyi = Hero("houyi",250,23)
\ 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