Commit 84cb0f42 by BellCodeEditor

auto save

parent 49e7f2eb
Showing with 1 additions and 1 deletions
...@@ -3,7 +3,7 @@ class Hero(object): ...@@ -3,7 +3,7 @@ class Hero(object):
def __init__(self, name): def __init__(self, name):
self.level = 1 self.level = 1
self.hp = 350 self.hp = 350
self.attack = 9999999999999999999999999999999999999999999999999999999999999999999t(self,enemy): # 攻击 self.attack = 9 # 攻击
enemy.hp -= self.attack enemy.hp -= self.attack
info1 = self.name + '攻击' + enemy.name + '发起攻击,' info1 = self.name + '攻击' + enemy.name + '发起攻击,'
info2 = '造成' + str(self.attack) + '真实伤害,' info2 = '造成' + str(self.attack) + '真实伤害,'
......
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