Commit cee2b3e2 by BellCodeEditor

save project

parent 12a4f4fe
Showing with 2 additions and 2 deletions
...@@ -22,12 +22,12 @@ class Hero: # 英雄类 ...@@ -22,12 +22,12 @@ class Hero: # 英雄类
exit() exit()
class Player(): # 玩家英雄 class Player(Hero): # 玩家英雄
def __init__(self,name): def __init__(self,name):
self.name = name self.name = name
self.level = 1 self.level = 1
self.hp = 300 self.hp = 300
self.attack = 50 self.attack = 60
self.max_hp = self.hp self.max_hp = self.hp
......
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