Ejemplo n.º 1
0
        public WeedElemental() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.6, 1.2)
        {
            Name        = "a weed elemental";
            Body        = 780;
            Hue         = 0x7D1;
            BaseSoundID = 442;

            SetStr(126, 155);
            SetDex(66, 85);
            SetInt(71, 92);

            SetHits(76, 93);

            SetDamage(9, 16);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 30, 35);
            SetResistance(ResistanceType.Fire, 10, 20);
            SetResistance(ResistanceType.Cold, 10, 20);
            SetResistance(ResistanceType.Poison, 15, 25);
            SetResistance(ResistanceType.Energy, 15, 25);

            SetSkill(SkillName.MagicResist, 50.1, 95.0);
            SetSkill(SkillName.Tactics, 60.1, 100.0);
            SetSkill(SkillName.Wrestling, 60.1, 100.0);

            Fame  = 3500;
            Karma = -3500;

            VirtualArmor = 34;

            PackReg(30);

            switch (Utility.RandomMinMax(0, 5))
            {
            case 0: Item weed1 = new PlantHerbalism_Leaf(); weed1.Amount = Utility.RandomMinMax(1, 3); PackItem(weed1); break;

            case 1: Item weed2 = new PlantHerbalism_Flower(); weed2.Amount = Utility.RandomMinMax(1, 3); PackItem(weed2); break;

            case 2: Item weed3 = new PlantHerbalism_Mushroom(); weed3.Amount = Utility.RandomMinMax(1, 3); PackItem(weed3); break;

            case 3: Item weed4 = new PlantHerbalism_Lilly(); weed4.Amount = Utility.RandomMinMax(1, 3); PackItem(weed4); break;

            case 4: Item weed5 = new PlantHerbalism_Cactus(); weed5.Amount = Utility.RandomMinMax(1, 3); PackItem(weed5); break;

            case 5: Item weed6 = new PlantHerbalism_Grass(); weed6.Amount = Utility.RandomMinMax(1, 3); PackItem(weed6); break;
            }

            PackItem(new FertileDirt(Utility.RandomMinMax(1, 4)));

            if (Utility.Random(100) > 60)
            {
                int seed_to_give = Utility.Random(100);

                if (seed_to_give > 90)
                {
                    PlantType type;
                    switch (Utility.Random(17))
                    {
                    case 0: type = PlantType.CampionFlowers; break;

                    case 1: type = PlantType.Poppies; break;

                    case 2: type = PlantType.Snowdrops; break;

                    case 3: type = PlantType.Bulrushes; break;

                    case 4: type = PlantType.Lilies; break;

                    case 5: type = PlantType.PampasGrass; break;

                    case 6: type = PlantType.Rushes; break;

                    case 7: type = PlantType.ElephantEarPlant; break;

                    case 8: type = PlantType.Fern; break;

                    case 9: type = PlantType.PonytailPalm; break;

                    case 10: type = PlantType.SmallPalm; break;

                    case 11: type = PlantType.CenturyPlant; break;

                    case 12: type = PlantType.WaterPlant; break;

                    case 13: type = PlantType.SnakePlant; break;

                    case 14: type = PlantType.PricklyPearCactus; break;

                    case 15: type = PlantType.BarrelCactus; break;

                    default: type = PlantType.TribarrelCactus; break;
                    }
                    PlantHue hue;
                    switch (Utility.Random(4))
                    {
                    case 0: hue = PlantHue.Pink; break;

                    case 1: hue = PlantHue.Magenta; break;

                    case 2: hue = PlantHue.FireRed; break;

                    default: hue = PlantHue.Aqua; break;
                    }

                    PackItem(new Seed(type, hue, false));
                }
                else if (seed_to_give > 70)
                {
                    PackItem(Engines.Plants.Seed.RandomPeculiarSeed(Utility.RandomMinMax(1, 4)));
                }
                else if (seed_to_give > 40)
                {
                    PackItem(Engines.Plants.Seed.RandomBonsaiSeed());
                }
                else
                {
                    PackItem(new Engines.Plants.Seed());
                }
            }
        }
Ejemplo n.º 2
0
        public ForestDemon() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = NameList.RandomName("daemon");
            switch (Utility.RandomMinMax(0, 4))
            {
            case 0: Title = "the forest demon"; break;

            case 1: Title = "the demon of the woods"; break;

            case 2: Title = "of demonic woodlands"; break;

            case 3: Title = "of demonic forests"; break;

            case 4: Title = "the woodland demon"; break;
            }
            Body        = 9;
            BaseSoundID = 357;
            Hue         = 0xB97;

            SetStr(476, 505);
            SetDex(76, 95);
            SetInt(301, 325);

            SetHits(286, 303);

            SetDamage(7, 14);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 45, 60);
            SetResistance(ResistanceType.Fire, 50, 60);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 20, 30);
            SetResistance(ResistanceType.Energy, 30, 40);

            SetSkill(SkillName.EvalInt, 70.1, 80.0);
            SetSkill(SkillName.Magery, 70.1, 80.0);
            SetSkill(SkillName.MagicResist, 85.1, 95.0);
            SetSkill(SkillName.Tactics, 70.1, 80.0);
            SetSkill(SkillName.Wrestling, 60.1, 80.0);

            Fame  = 15000;
            Karma = -15000;

            VirtualArmor = 58;
            ControlSlots = Core.SE ? 4 : 5;

            PackItem(new Log(10));

            switch (Utility.RandomMinMax(0, 5))
            {
            case 0: Item weed1 = new PlantHerbalism_Leaf(); weed1.Amount = Utility.RandomMinMax(1, 3); PackItem(weed1); break;

            case 1: Item weed2 = new PlantHerbalism_Flower(); weed2.Amount = Utility.RandomMinMax(1, 3); PackItem(weed2); break;

            case 2: Item weed3 = new PlantHerbalism_Mushroom(); weed3.Amount = Utility.RandomMinMax(1, 3); PackItem(weed3); break;

            case 3: Item weed4 = new PlantHerbalism_Lilly(); weed4.Amount = Utility.RandomMinMax(1, 3); PackItem(weed4); break;

            case 4: Item weed5 = new PlantHerbalism_Cactus(); weed5.Amount = Utility.RandomMinMax(1, 3); PackItem(weed5); break;

            case 5: Item weed6 = new PlantHerbalism_Grass(); weed6.Amount = Utility.RandomMinMax(1, 3); PackItem(weed6); break;
            }

            if (Utility.Random(100) > 60)
            {
                int seed_to_give = Utility.Random(100);

                if (seed_to_give > 90)
                {
                    Seed reward;

                    PlantType type;
                    switch (Utility.Random(17))
                    {
                    case 0: type = PlantType.CampionFlowers; break;

                    case 1: type = PlantType.Poppies; break;

                    case 2: type = PlantType.Snowdrops; break;

                    case 3: type = PlantType.Bulrushes; break;

                    case 4: type = PlantType.Lilies; break;

                    case 5: type = PlantType.PampasGrass; break;

                    case 6: type = PlantType.Rushes; break;

                    case 7: type = PlantType.ElephantEarPlant; break;

                    case 8: type = PlantType.Fern; break;

                    case 9: type = PlantType.PonytailPalm; break;

                    case 10: type = PlantType.SmallPalm; break;

                    case 11: type = PlantType.CenturyPlant; break;

                    case 12: type = PlantType.WaterPlant; break;

                    case 13: type = PlantType.SnakePlant; break;

                    case 14: type = PlantType.PricklyPearCactus; break;

                    case 15: type = PlantType.BarrelCactus; break;

                    default: type = PlantType.TribarrelCactus; break;
                    }
                    PlantHue hue;
                    switch (Utility.Random(4))
                    {
                    case 0: hue = PlantHue.Pink; break;

                    case 1: hue = PlantHue.Magenta; break;

                    case 2: hue = PlantHue.FireRed; break;

                    default: hue = PlantHue.Aqua; break;
                    }

                    PackItem(new Seed(type, hue, false));
                }
                else if (seed_to_give > 70)
                {
                    PackItem(Engines.Plants.Seed.RandomPeculiarSeed(Utility.RandomMinMax(1, 4)));
                }
                else if (seed_to_give > 40)
                {
                    PackItem(Engines.Plants.Seed.RandomBonsaiSeed());
                }
                else
                {
                    PackItem(new Engines.Plants.Seed());
                }
            }
        }