Exemple #1
0
        /// <summary>
        /// Lets the given Character roll
        /// </summary>
        /// <param name="chr"></param>
        /// <param name="type"></param>
        public void Roll(Character chr, LootRollType type)
        {
            if (m_RemainingParticipants.Remove(chr.LooterEntry))
            {
                var roll = Utility.Random(1, LootMgr.HighestRoll);

                m_rolls[new LootRollEntry(roll, type)] = chr.LooterEntry;
                LootHandler.SendRoll(chr, m_loot, m_lootItem, roll, type);
            }
        }