Commit 09159174 by BellCodeEditor

save project

parent ed36e642
Showing with 10 additions and 9 deletions
# #
class Hero: class Hero(object):
def__init__(self): def__init__(self,name):
self.level=999999999999999999999999999999999999999999999999999999999999999 self.max_hp=self.hp
self.level=1
self.name=name self.name=name
self.hp=hp self.hp=250
self.attack=attack self.attack=400
def upgrade(): def cure(self):
yase.level=yase.level+1 self.hp=self.hp+60
yase.hp=yase.hp+50 if self.hp>self
yase.attack=yase.attack+4
yase =Hero("亚瑟",3333333333333333333,-2000000) yase =Hero("亚瑟",3333333333333333333,-2000000)
print() print()
\ 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