예제 #1
0
    /// <summary>
    /// 模拟数据
    /// </summary>
    public static void SimulationData()
    {
        int id = 1;

        m_Captions.Clear();
        List <CaptionInfo> l = GodSkillM.GetCaptions();

        for (int i = 0; i < l.Count; i++)
        {
            l[i].m_id = id++;
            m_Captions.Add(l[i].m_id, l[i]);
        }
    }
예제 #2
0
    /// <summary>
    /// 获取有碎片(尚未召唤)黑科技
    /// </summary>
    public static void GetHaveFragmentBS(ref List <CaptionInfo> l)
    {
        if (l == null)
        {
            l = new List <CaptionInfo>();
        }
        l.Clear();

        l = GodSkillM.GetCaptions();
        for (int i = l.Count - 1; i >= 0; i--)
        {
            CaptionInfo info     = l[i];
            int         itemtype = info.GetGodSkillInfo().m_needbook;
            int         have     = ItemDC.GetItemCount(itemtype);
            if (CheckHaveBS(info.m_captionid) || have == 0)
            {
                l.RemoveAt(i);
            }
        }
    }