예제 #1
0
        public static void GenerateLoot(BaseCreature creature)
        {
            double difficulty = creature.InitialDifficulty;

            #region High-Level Creatures

            if (creature.IsParagon)
            {
                creature.PackItem(new ArcaneScroll());
            }

            if (creature.Rare)
            {
                creature.PackItem(new ArcaneScroll());
            }

            if (creature.IsLoHBoss())
            {
                creature.PackItem(new ArcaneScroll());

                switch (Utility.RandomMinMax(1, 3))
                {
                case 1: creature.PackItem(new SkillMasteryOrb()); break;

                case 2: creature.PackItem(new SkillMasteryScroll()); break;

                case 3: creature.PackItem(new AspectCore()); break;
                }
            }

            if (creature.IsChamp())
            {
                creature.PackItem(new ArcaneScroll());

                switch (Utility.RandomMinMax(1, 3))
                {
                case 1: creature.PackItem(new SkillMasteryOrb()); break;

                case 2: creature.PackItem(new SkillMasteryScroll()); break;

                case 3: creature.PackItem(new AspectCore()); break;
                }
            }

            if (creature.IsBoss())
            {
                for (int a = 0; a < 5; a++)
                {
                    creature.PackItem(new ArcaneScroll());
                }

                creature.PackItem(new SkillMasteryOrb());
                creature.PackItem(new SkillMasteryScroll());
                creature.PackItem(new AspectCore());

                for (int a = 0; a < 2; a++)
                {
                    if (Utility.RandomDouble() <= .5)
                    {
                        switch (Utility.RandomMinMax(1, 3))
                        {
                        case 1: creature.PackItem(new SkillMasteryOrb()); break;

                        case 2: creature.PackItem(new SkillMasteryScroll()); break;

                        case 3: creature.PackItem(new AspectCore()); break;
                        }
                    }
                }
            }

            if (creature.IsEventBoss())
            {
            }

            #endregion
        }