Пример #1
0
 public bool IsStationary(Summon summon)
 {
     return(GetSummonMovementType(summon.SummonSkill) == SummonConstants.SummonMovementType.Stationary);
 }
Пример #2
0
        public static Summon GetNewSummonFromSkill(Skill sumSkill)
        {
            Summon entityToSummon = null;

            switch (sumSkill.MapleID)
            {
                #region stationarySummons
            case (int)CharacterConstants.SkillNames.Ranger.Puppet:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.Sniper.Puppet:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.Outlaw.Octopus:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.Corsair.WrathoftheOctopi:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.WindArcher3.Puppet:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;
                #endregion

                #region circleSummons
            case (int)CharacterConstants.SkillNames.Bowmaster.Phoenix:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.Marksman.Frostprey:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;
                #endregion

                #region teleportSummons
            case (int)CharacterConstants.SkillNames.FirePoisonArchMage.Elquines:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.IceLightningArchMage.Ifrit:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.Priest.SummonDragon:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.Bishop.Bahamut:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.BlazeWizard3.Ifrit:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;
                #endregion

                #region followSummons
            case (int)CharacterConstants.SkillNames.DarkKnight.Beholder:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.BlazeWizard.Flame:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.DawnWarrior.Soul:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.WindArcher.Storm:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.NightWalker.Darkness:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;

            case (int)CharacterConstants.SkillNames.ThunderBreaker.LightningSprite:
                entityToSummon = new Summon(sumSkill.Character, sumSkill, sumSkill.Character.Position, GetSummonMovementType(sumSkill));
                break;
                #endregion

            default:
                entityToSummon = null;
                break;
            }

            return(entityToSummon);
        }