Ejemplo n.º 1
0
        public static void AddBeginnerJobSkills(MapleCharacter chr, JobType type)
        {
            List <Skill> newSkills = new List <Skill>();

            switch (type)
            {
            case JobType.Cannonneer:
                newSkills.Add(new Skill(Explorer.PIRATE_BLESSING, 0, 0));
                newSkills.Add(new Skill(Explorer.MASTER_OF_SWIMMING, 0, 1));
                newSkills.Add(new Skill(Explorer.MASTER_OF_ORGANIZATION, 0, 1));
                chr.Inventory.EquipSlots += 12;
                chr.Inventory.UseSlots   += 12;
                chr.Inventory.SetupSlots += 12;
                chr.Inventory.EtcSlots   += 12;
                break;

            case JobType.Jett:
                newSkills.Add(new Skill(Explorer.RETRO_ROCKETS, 0, 0));
                break;

            case JobType.Mercedes:
                newSkills.Add(new Skill(MercedesBasics.ELVEN_HEALING, 0, 1));
                newSkills.Add(new Skill(MercedesBasics.ELVEN_BLESSING, 0, 0));
                newSkills.Add(new Skill(MercedesBasics.UPDRAFT, 0, 1));
                newSkills.Add(new Skill(MercedesBasics.ELVEN_GRACE, 0, 1));
                break;

            case JobType.Phantom:
                newSkills.Add(new Skill(PhantomBasics.PHANTOM_INSTINCT, 0, 0));
                newSkills.Add(new Skill(PhantomBasics.DEXTEROUS_TRAINING, 0, 1));
                break;

            case JobType.Luminous:
                newSkills.Add(new Skill(LuminousBasics.INNER_LIGHT, 0, 1));
                newSkills.Add(new Skill(LuminousBasics.LIGHT_WASH, 0, 0));
                newSkills.Add(new Skill(LuminousBasics.SUNFIRE, 0, 1));
                newSkills.Add(new Skill(LuminousBasics.ECLIPSE, 0, 1));
                newSkills.Add(new Skill(LuminousBasics.CHANGE_LIGHT_DARK_MODE, 0, 1));
                newSkills.Add(new Skill(LuminousBasics.FLASH_BLINK, 0, 1));
                break;

            case JobType.Demon:
                newSkills.Add(new Skill(DemonBasics.DARK_WINDS, 0, 1));
                newSkills.Add(new Skill(DemonBasics.DEMONIC_BLOOD, 0, 1));
                break;

            case JobType.Hayato:
                newSkills.Add(new Skill(HayatoBasics.MASTER_OF_BLADES, 0, 1));
                newSkills.Add(new Skill(HayatoBasics.KEEN_EDGE, 0, 0));
                newSkills.Add(new Skill(HayatoBasics.SHIMADA_HEART, 0, 1));
                newSkills.Add(new Skill(HayatoBasics.SUMMER_RAIN, 0, 1));
                break;

            case JobType.Kanna:
                newSkills.Add(new Skill(KannaBasics.ELEMENTAL_BLESSING, 1, 1));
                newSkills.Add(new Skill(KannaBasics.MANA_FONT, 1, 1));
                newSkills.Add(new Skill(KannaBasics.HAKU, 1, 1));
                newSkills.Add(new Skill(KannaBasics.NINE_TAILED_FURY, 1, 1));
                newSkills.Add(new Skill(KannaBasics.ELEMENTALISM_LINK_SKILL, 3, 0));
                break;

            case JobType.Mihile:
                newSkills.Add(new Skill(MihileBasics.KNIGHTS_WATCH, 1, 1));
                break;

            case JobType.Xenon:
                newSkills.Add(new Skill(XenonBasics.SUPPLY_SURPLUS, 1, 1));
                newSkills.Add(new Skill(XenonBasics.HYBRID_LOGIC, 1, 1));
                newSkills.Add(new Skill(XenonBasics.MULTILATERAL_I, 1, 1));
                newSkills.Add(new Skill(XenonBasics.MIMIC_PROTOCOL, 1, 1));
                break;

            case JobType.Kaiser:
                newSkills.Add(new Skill(KaiserBasics.REALIGN_DEFENDER_MODE, 1, 1));
                newSkills.Add(new Skill(KaiserBasics.REALIGN_ATTACKER_MODE, 1, 1));
                newSkills.Add(new Skill(KaiserBasics.VERTICAL_GRAPPLE, 1, 1));
                newSkills.Add(new Skill(KaiserBasics.TRANSFIGURATION, 1, 1));
                newSkills.Add(new Skill(KaiserBasics.IRON_WILL, 3, 1));
                break;

            case JobType.AngelicBuster:
                newSkills.Add(new Skill(AngelicBusterBasics.SOUL_BUSTER, 1, 1));
                newSkills.Add(new Skill(AngelicBusterBasics.GRAPPLING_HEART, 1, 1));
                newSkills.Add(new Skill(AngelicBusterBasics.TERMS_AND_CONDITIONS, 3, 1));
                newSkills.Add(new Skill(AngelicBusterBasics.HYPER_COORDINATE, 1, 1));
                newSkills.Add(new Skill(AngelicBusterBasics.DRESS_UP, 1, 1));
                break;

            case JobType.Ultimate:
                //TODO: +10 level equip skill, id = 80 ?
                break;
            }
            newSkills.Add(new Skill(UniversalBeginner.NEBULITE_FUSION, 1, 1)); //nebulite fusion
            if (newSkills.Count > 0)
            {
                chr.AddSkills(newSkills, false);
            }
        }