def act(self,x,y): t=self.summon(unit.arrow_to_d(vec(x,y)-self.owner.v,set_model=model.圆形(r=10),exact=True)) t.speed=400 def f(): t=self.summon(unit.token(),self.last_time,x,y) t.add_ef(effect.fire(r=self.r,power=self.power)) t.add_ef(effect.bomb(r=-1,self_func=f ))
def act(self,x,y): v=vec(x,y) for i in range(-3,4): vi=(v-self.owner.v).adjust_angle(i*0.17) t=self.summon(unit.arrow_to_d(vi, model.箭头(color=(170,170,255)))) t.die_model=model.爆炸(r=35,t=0.2,color=(200,180,255)) t.speed=600 t.add_ef(effect.bomb(r=30,power=30,func=lambda u:u.add_ef(effect.slow(life_time=2,percent=0.6))))
def unit_gen(): t=self.summon(unit.arrow_to_d(vec(x+rd(-self.r//4*3,self.r//4*3),y+rd(-self.r//4*3,self.r//4*3))-self.owner.v,set_model=model.直线(width=1),exact=True)) t.speed=350 t.add_ef(effect.bomb(aoe=True,r=-1,aoe_r=self.r/4*3,power=self.power)) return t
def act(self,x,y): t=self.summon(unit.arrow_to_d(vec(x,y)-self.owner.v,exact=True,set_model=model.直线(width=10))) t.speed=500 t.die_model=(model.爆炸(t=0.2,r=self.r,color=(255,255,255))) t.add_ef(effect.bomb(r=-1,power=0, aoe=True, aoe_r=self.r, func=lambda i:i.add_ef(effect.stun(2))))
def unit_gen(): v=(vec(x,y)-self.owner.v).adjust_angle(random.gauss(0,0.14)) t=unit.arrow_to_d(v,model.箭头(l=15,color=(255,255,200),width=2)) t.add_ef(effect.bomb(r=25,power=30)) t.speed=500 return t
def act(self,x,y): t=self.summon(unit.arrow_to_d(vec(x,y)-self.owner.v)) t.speed=600 t.add_ef(effect.bomb(r=30,power=30))
def act(self,x,y): t=self.summon(unit.arrow_to_d(vec(x,y)-self.owner.v)) t.speed=250 t.add_ef(effect.grav(r=225,power=200))
def act(self,x,y): v=vec(x-self.owner.v.x, y-self.owner.v.y).adjust_angle((random.random()-0.5)/2) t=self.summon(unit.arrow_to_d(v,set_model=model.箭头(l=50,width=6,color=(255,111,111)))) t.die_model=model.爆炸(t=0.3,r=200) t.speed=1200 t.add_ef(effect.bomb(r=45,power=100,aoe=True,aoe_r=200))
def act(self,x,y): t=self.summon(unit.arrow_to_d(vec(x,y)-self.owner.v)) t.add_ef(effect.one_dam(r=30,power=50))