Commit 1cedcbd6 by BellCodeEditor

save project

parent 45bcb9f5
Showing with 1 additions and 1 deletions
...@@ -37,7 +37,7 @@ class Player(Hero): # 玩家英雄 ...@@ -37,7 +37,7 @@ class Player(Hero): # 玩家英雄
self.hp = 200 self.hp = 200
self.attack = 47 self.attack = 47
def cube(self): def cube(self):
we=random.randint(30,50) we=random.randint(30,57)
self.hp=self.hp+we self.hp=self.hp+we
if self.hp>self.max_hp: if self.hp>self.max_hp:
self.hp=self.max_hp self.hp=self.max_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