Commit a1137cd5 by BellCodeEditor

save project

parent 8094f4bc
Showing with 1 additions and 0 deletions
...@@ -27,6 +27,7 @@ class Player(Hero): # 玩家英雄 ...@@ -27,6 +27,7 @@ class Player(Hero): # 玩家英雄
super().__init__(name) super().__init__(name)
self.hp = 5 self.hp = 5
self.attack = 100 self.attack = 100
self.max_hp = self.hp
print("英雄:"+self.name+".创建成功,"+"\n英雄类型:"+self.herotype+"\n攻击力:"+str(self.attack)) print("英雄:"+self.name+".创建成功,"+"\n英雄类型:"+self.herotype+"\n攻击力:"+str(self.attack))
yase = Hero("亚瑟","坦克") yase = Hero("亚瑟","坦克")
......
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