Commit e5bfd3e3 by BellCodeEditor

save project

parent 9a581ef4
Showing with 11 additions and 2 deletions
......@@ -6,8 +6,17 @@ class Hero(object):
self.attack = 40
self.name = name
def combat(): # 攻击
???
def combat(self,e): # 攻击
e.hp-=self.attack
info1=self.name+'t'+enemy.name+'f'
info2='z'+str(self.attack)+
if self.hp==0:
info=0=e.name+'h'
print('vbge2w')
else:
yase = Hero("垭瑟")
houyi= 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