Commit ea04d67d by BellCodeEditor

save project

parent b56ea009
Showing with 3 additions and 1 deletions
...@@ -27,7 +27,9 @@ class Hero(object): ...@@ -27,7 +27,9 @@ class Hero(object):
print(info) print(info)
print('你干嘛啊~~') print('你干嘛啊~~')
exit() exit()
def uplevel(self):
self.max_hp+=random.randint(10,30)
self.attack+=random.randint(1,10)
class Player(Hero): class Player(Hero):
def __init__(self,hero_type,name): def __init__(self,hero_type,name):
super().__init__(name) super().__init__(name)
......
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