예제 #1
0
파일: World.cs 프로젝트: Thangnguyen11/DOAN
        public void BlitzHookEffect(object BLITZHAND, object HERO, object BOSS)
        {
            BlitzHands blitzHands = (BlitzHands)BLITZHAND;
            Hero       hero       = (Hero)HERO;
            Blitz      boss       = (Blitz)BOSS;

            if (blitzHands.ishit && !blitzHands.done)
            {
                if (Global.GetDistance(hero.pos, boss.pos) >= boss.hitdist)
                {
                    hero.pos        += Global.RadialMovement(hero.pos, boss.pos, -15);
                    hero.cursor.pos += Global.RadialMovement(hero.pos, boss.pos, -15);
                    hero.isstunned   = true;
                }
                if (Global.GetDistance(boss.pos, hero.pos) < boss.hitdist)
                {
                    hero.isstunned   = false;
                    blitzHands.ishit = false;
                }
            }
        }
예제 #2
0
파일: World.cs 프로젝트: Thangnguyen11/DOAN
        public void BlitzHook(object BLITZ, object PROJECTILE)
        {
            Blitz blitz = (Blitz)BLITZ;

            if (blitz.handdelay >= 0)
            {
                blitz.handdelay--;
            }
            if (blitz.handdelay <= 0)
            {
                if (blitzHands.Count() < 1000)
                {
                    Global.soundcontrol.PLaySound("BlitzHook");
                    blitzHands.Add((BlitzHands)PROJECTILE);
                }
            }
            if (blitz.handdelay == 0)
            {
                blitz.handdelay = 40;
            }
        }