Пример #1
0
        public fmGochaDrop()
        {
            m_kinds.Clear();
            m_kinds.Add(eReward.None, 1200);
            m_kinds.Add(eReward.Gold, 4900);
            m_kinds.Add(eReward.Item, 2000);
            m_kinds.Add(eReward.Stone, 800);
            m_kinds.Add(eReward.Ruby, 1000);
            m_kinds.Add(eReward.SCKey, 100);

            m_nMinVal = (m_kinds[eReward.None] + m_kinds[eReward.Gold]) * m_nRate + (int)(m_kinds[eReward.Item] * m_nRate * 0.2);

            for (int i = 0; i < m_kinds.Count; ++i)
            {
                int roll = m_kinds[(eReward)i] * m_nRate;

                fmGochaNode node = new fmGochaNode();
                node.m_fmData = null;

                node.m_nGochaValue = i;

                node.m_nBegin = m_nMaxVal;
                node.m_nEnd   = m_nMaxVal + roll;

                m_listBoard.Add(node);

                m_nMaxVal += roll;
            }
        }
Пример #2
0
        public void Add(fmDataDragonTomb data)
        {
            int cnt = data.m_nArrAppearRateMon.Length;

            for (int i = 0; i < cnt; ++i)
            {
                int roll = data.m_nArrAppearRateMon[i] * m_nRate;

                fmGochaNode node = new fmGochaNode();
                node.m_fmData = null;

                node.m_nGochaValue = data.m_nArrAppearMon[i];

                node.m_nBegin = m_nMaxVal;
                node.m_nEnd   = m_nMaxVal + roll;

                m_listBoard.Add(node);

                m_nMaxVal += roll;
            }
        }
Пример #3
0
        public fmGochaMeet(Random ran)
        {
            m_random = ran;

            int[] tk = { 390, 285, 325 };

            for (int i = 0; i < tk.Length; ++i)
            {
                int roll = tk[i] * m_nRate;

                fmGochaNode node = new fmGochaNode();
                node.m_fmData = null;

                node.m_nGochaValue = i;

                node.m_nBegin = m_nMaxVal;
                node.m_nEnd   = m_nMaxVal + roll;

                m_listBoard.Add(node);

                m_nMaxVal += roll;
            }
        }