Пример #1
0
        public static void GiveArtifactTo(Mobile m)
        {
            Item item = new UnidentifiedArtifact();

            if (DifficultyLevel.GetUnidentifiedChance() >= Utility.RandomMinMax(1, 100))
            {
                item = Loot.RandomArty();
            }                                                                                                                         // WIZARD WANTS A UNIFIED ARTY LISTING

            if (item == null)
            {
                return;
            }

            // TODO: Confirm messages
            if (m.AddToBackpack(item))
            {
                m.SendMessage("As a reward for slaying the mighty leviathan, an artifact has been placed in your backpack.");
            }
            else
            {
                m.SendMessage("As your backpack is full, your reward for destroying the legendary leviathan has been placed at your feet.");
            }
        }