Ejemplo n.º 1
0
        private bool LoadDropValueInWorld(Dictionary <int, fmDataDropValue> dic)
        {
            int m_nMaxVal = 0;
            int cnt       = dic.Count;

            for (int i = cnt - 1; 0 <= i; --i)
            {
                var data = dic.ElementAt(i).Value;
                int roll = data.m_nRate;

                if (data.m_eParts == eParts.Jewel)
                {
                    continue;
                }

                fmGochaItem node = new fmGochaItem();
                node.m_fmData      = data;
                node.m_nGochaValue = 0;
                node.m_nBegin      = m_nMaxVal;
                node.m_nEnd        = m_nMaxVal + roll;
                m_gochaWitoutJewel.Add(node);

                m_nMaxVal += roll;
            }

            m_valuesInWorld = dic.Values.Where(x => x.m_strDropPlace.Equals("World")).ToList();

            return(true);
        }
Ejemplo n.º 2
0
        private bool LoadDropValueInDTomb(Dictionary <int, fmDataDropValue> dic)
        {
            int m_nMaxVal = 0;
            int cnt       = dic.Count;

            for (int i = cnt - 1; 0 <= i; --i)
            {
                var data = dic.ElementAt(i).Value;
                int roll = data.m_nRate;

                fmGochaItem node = new fmGochaItem();
                node.m_fmData      = data;
                node.m_nGochaValue = 0;
                node.m_nBegin      = m_nMaxVal;
                node.m_nEnd        = m_nMaxVal + roll;
                m_gochaAll.Add(node);

                m_nMaxVal += roll;
            }

            m_valuesInDTomb = dic.Values.Where(x => x.m_strDropPlace.Equals("DTomb")).ToList();

            return(true);
        }