コード例 #1
0
    public override bool CheckGameGuideOnce()
    {
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo == null)
        {
            return(false);
        }
        UserChallengeInfo userChallengeInfo = myCharInfo.GetUserChallengeInfo();

        if (userChallengeInfo == null)
        {
            return(false);
        }
        Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(3130);

        if (userChallengeInfo2 != null)
        {
            if (0L < userChallengeInfo2.m_nValue)
            {
                return(false);
            }
        }
        return(0 < NkUserInventory.instance.Get_First_ItemCnt(50304));
    }
コード例 #2
0
    private void ShowClickQuestOpenDlg(string OpenUi, short unique)
    {
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo != null)
        {
            ChallengeTable sequenceChallengeTable = NrTSingleton <ChallengeManager> .Instance.GetSequenceChallengeTable();

            if (sequenceChallengeTable != null)
            {
                UserChallengeInfo userChallengeInfo = kMyCharInfo.GetUserChallengeInfo();
                if (userChallengeInfo != null)
                {
                    Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(sequenceChallengeTable.m_nUnique);
                    if (userChallengeInfo2 != null && userChallengeInfo2.m_nValue >= (long)sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount)
                    {
                        NrTSingleton <ChallengeManager> .Instance.GetChallengeOpenReward();

                        return;
                    }
                }
            }
        }
        NrTSingleton <ChallengeManager> .Instance.GetChallengeOpenUi(OpenUi, unique);
    }
コード例 #3
0
    public override bool CheckGameGuideOnce()
    {
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo == null)
        {
            return(false);
        }
        if (this.m_nMinLevel > myCharInfo.GetLevel())
        {
            return(false);
        }
        UserChallengeInfo userChallengeInfo = myCharInfo.GetUserChallengeInfo();

        if (userChallengeInfo == null)
        {
            return(false);
        }
        Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(3050);

        if (userChallengeInfo2 == null)
        {
            return(false);
        }
        if (0L < userChallengeInfo2.m_nValue)
        {
            return(false);
        }
        NkReadySolList readySolList = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetReadySolList();

        return(readySolList != null && 5 <= readySolList.GetCount() && 10000L <= myCharInfo.m_Money);
    }
コード例 #4
0
    public int CalcTotalPercent()
    {
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo == null)
        {
            return(0);
        }
        UserChallengeInfo userChallengeInfo = kMyCharInfo.GetUserChallengeInfo();

        if (userChallengeInfo == null)
        {
            return(0);
        }
        short key = 3;

        if (!this.m_kChallenge.ContainsKey(key))
        {
            return(0);
        }
        int num = 0;

        foreach (ChallengeTable current in this.m_kChallenge[key].Values)
        {
            if (current != null)
            {
                if ((int)current.m_nLevel <= kMyCharInfo.GetLevel())
                {
                    Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(current.m_nUnique);
                    if (userChallengeInfo2 != null)
                    {
                        foreach (ChallengeTable.RewardInfo current2 in current.m_kRewardInfo)
                        {
                            if (userChallengeInfo2.m_nValue >= (long)current2.m_nConditionCount)
                            {
                                num++;
                            }
                        }
                    }
                }
            }
        }
        if (this.m_nTotalRewardCount == 0)
        {
            return(0);
        }
        return(num * 100 / this.m_nTotalRewardCount);
    }
コード例 #5
0
    public override bool CheckGameGuideOnce()
    {
        if (!NrTSingleton <NkQuestManager> .Instance.IsCompletedQuest("10108_040"))
        {
            return(false);
        }
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        if (myCharInfo == null)
        {
            return(false);
        }
        UserChallengeInfo userChallengeInfo = myCharInfo.GetUserChallengeInfo();

        if (userChallengeInfo != null)
        {
            Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(3140);
            if (userChallengeInfo2 != null && 0L < userChallengeInfo2.m_nValue)
            {
                return(false);
            }
        }
        return(true);
    }
コード例 #6
0
    public void SetData()
    {
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo == null)
        {
            return;
        }
        UserChallengeInfo userChallengeInfo = kMyCharInfo.GetUserChallengeInfo();

        if (userChallengeInfo == null)
        {
            return;
        }
        Dictionary <short, ChallengeTable> challengeType = NrTSingleton <ChallengeManager> .Instance.GetChallengeType(ChallengeManager.TYPE.BAND_INVITE_FRIENDS);

        if (challengeType == null)
        {
            return;
        }
        foreach (ChallengeTable current in challengeType.Values)
        {
            if ((int)current.m_nLevel <= kMyCharInfo.GetLevel())
            {
                Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(current.m_nUnique);
                int            i   = 0;
                int            num = 64;
                while (i < current.m_kRewardInfo.Count)
                {
                    if (current.m_kRewardInfo[i].m_nConditionCount != 0 && current.m_kRewardInfo[i].m_nItemUnique != 0)
                    {
                        bool visible = false;
                        if (userChallengeInfo2 != null)
                        {
                            if (i < num)
                            {
                                long num2 = 1L << (i & 31);
                                if (1L <= (userChallengeInfo2.m_bGetReward1 & num2))
                                {
                                    visible = true;
                                }
                            }
                            else
                            {
                                long num3 = 1L << (i - num & 31);
                                if (1L <= (userChallengeInfo2.m_bGetReward1 & num3))
                                {
                                    visible = true;
                                }
                            }
                        }
                        if (i < 5 && i > 0)
                        {
                            this.m_txRewardCompleteBG[i - 1].Visible = visible;
                            this.m_txRewardComplete[i - 1].Visible   = visible;
                        }
                    }
                    i++;
                }
            }
        }
    }
コード例 #7
0
    public void QuestUpdate()
    {
        this.m_kQuestList.Clear();
        List <USER_CURRENT_QUEST_INFO> list = new List <USER_CURRENT_QUEST_INFO>();

        foreach (USER_CURRENT_QUEST_INFO current in NrTSingleton <NkQuestManager> .Instance.GetMainlist())
        {
            list.Add(current);
        }
        foreach (USER_CURRENT_QUEST_INFO current2 in NrTSingleton <NkQuestManager> .Instance.GetSublist())
        {
            list.Add(current2);
        }
        float num  = 0f;
        int   num2 = 0;

        foreach (USER_CURRENT_QUEST_INFO current3 in list)
        {
            if (!(current3.strQuestUnique == string.Empty))
            {
                string strQuestUnique = current3.strQuestUnique;
                if (strQuestUnique != string.Empty)
                {
                    CQuestGroup questGroupByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByQuestUnique(strQuestUnique);

                    if (questGroupByQuestUnique != null)
                    {
                        CQuest questByQuestUnique = NrTSingleton <NkQuestManager> .Instance.GetQuestByQuestUnique(strQuestUnique);

                        if (questByQuestUnique != null)
                        {
                            float num3 = 80f;
                            int   num4 = 0;
                            for (int i = 0; i < 3; i++)
                            {
                                if (0 < questByQuestUnique.GetQuestCommon().cQuestCondition[i].i32QuestCode)
                                {
                                    num4++;
                                }
                            }
                            if (num4 == 1)
                            {
                                this.m_kQuestList.SetColumnData("Mobile/DLG/Main/nlb_questlist_columndata" + NrTSingleton <UIDataManager> .Instance.AddFilePath);
                            }
                            else if (num4 == 2)
                            {
                                this.m_kQuestList.SetColumnData("Mobile/DLG/Main/nlb_questlist2_columndata" + NrTSingleton <UIDataManager> .Instance.AddFilePath);
                                num3 = 120f;
                            }
                            else if (num4 == 3)
                            {
                                this.m_kQuestList.SetColumnData("Mobile/DLG/Main/nlb_questlist3_columndata" + NrTSingleton <UIDataManager> .Instance.AddFilePath);
                                num3 = 160f;
                            }
                            num += num3;
                            this.m_kQuestList.LineHeight = num3;
                            NewListItem newListItem = new NewListItem(this.m_kQuestList.ColumnNum, true, string.Empty);
                            this.ShowTouchButton(questByQuestUnique);
                            string   text  = string.Empty;
                            string[] array = new string[3];
                            text = questByQuestUnique.GetGiveQuestNpcName();
                            if (!(text != string.Empty))
                            {
                                string msg = string.Format("Quest Give Npc Name == Blank, unique = {0}, charcode = {1}", questByQuestUnique.GetQuestUnique(), questByQuestUnique.GetQuestCommon().i32QuestCharKind);
                                NrTSingleton <NrMainSystem> .Instance.Alert(msg);

                                return;
                            }
                            CSelQuestInfo cSelQuestInfo = new CSelQuestInfo();
                            cSelQuestInfo.m_bComplete          = true;
                            cSelQuestInfo.m_SeldQuestCondition = questByQuestUnique.GetQuestCommon().cQuestCondition[0];
                            cSelQuestInfo.m_SelQuest           = questByQuestUnique;
                            cSelQuestInfo.bType = 0;
                            CQuestGroup questGroupByQuestUnique2 = NrTSingleton <NkQuestManager> .Instance.GetQuestGroupByQuestUnique(questByQuestUnique.GetQuestUnique());

                            if (questGroupByQuestUnique2 != null)
                            {
                                if (NrTSingleton <NkQuestManager> .Instance.GetToggleQuestUnique())
                                {
                                    text = NrTSingleton <UIDataManager> .Instance.GetString(this.m_ColorTitle, questByQuestUnique.GetQuestTitle(), "(", questByQuestUnique.GetQuestUnique().ToString(), ")");
                                }
                                else
                                {
                                    text = NrTSingleton <UIDataManager> .Instance.GetString(this.m_ColorTitle, questByQuestUnique.GetQuestTitle());
                                }
                                newListItem.SetListItemData(3, text, cSelQuestInfo, null, null);
                            }
                            for (int j = 0; j < 3; j++)
                            {
                                if (0 < questByQuestUnique.GetQuestCommon().cQuestCondition[j].i32QuestCode)
                                {
                                    array[j] = questByQuestUnique.GetConditionText(current3.i64ParamVal[j], j);
                                    if (string.Empty != array[j])
                                    {
                                        string conditionText = questByQuestUnique.GetConditionText(current3.i64ParamVal[j], j);
                                        string empty         = string.Empty;
                                        bool   bTitle        = NrTSingleton <CTextParser> .Instance.ChangeQuestConditionText(conditionText, out empty);

                                        if (NrTSingleton <NkQuestManager> .Instance.GetToggleQuestUnique())
                                        {
                                            array[j] = string.Concat(new object[]
                                            {
                                                empty,
                                                "(",
                                                questByQuestUnique.GetQuestCommon().cQuestCondition[j].i32QuestCode,
                                                ")"
                                            });
                                        }
                                        else
                                        {
                                            array[j] = empty;
                                        }
                                        CSelQuestInfo cSelQuestInfo2 = new CSelQuestInfo();
                                        int           index          = 5;
                                        if (j == 0)
                                        {
                                            index = 5;
                                        }
                                        else if (j == 1)
                                        {
                                            index = 10;
                                        }
                                        else if (j == 2)
                                        {
                                            index = 13;
                                        }
                                        if (questByQuestUnique.CheckCondition(questByQuestUnique.GetQuestCommon().cQuestCondition[j].i64Param, ref current3.i64ParamVal[j], j) && current3.bFailed == 0)
                                        {
                                            cSelQuestInfo2.m_bComplete          = true;
                                            cSelQuestInfo2.m_SeldQuestCondition = questByQuestUnique.GetQuestCommon().cQuestCondition[j];
                                            cSelQuestInfo2.m_SelQuest           = questByQuestUnique;
                                            cSelQuestInfo2.bType  = 1;
                                            cSelQuestInfo2.bTitle = bTitle;
                                            cSelQuestInfo2.strCon = conditionText;
                                            newListItem.SetListItemData(index, this.m_ColorComplte + array[j], cSelQuestInfo2, null, null);
                                        }
                                        else
                                        {
                                            cSelQuestInfo2.m_bComplete          = false;
                                            cSelQuestInfo2.m_SeldQuestCondition = questByQuestUnique.GetQuestCommon().cQuestCondition[j];
                                            cSelQuestInfo2.m_SelQuest           = questByQuestUnique;
                                            cSelQuestInfo2.bType  = 1;
                                            cSelQuestInfo2.bTitle = bTitle;
                                            cSelQuestInfo2.strCon = conditionText;
                                            newListItem.SetListItemData(index, this.m_ColorNormal + array[j], cSelQuestInfo2, null, null);
                                        }
                                    }
                                }
                            }
                            if (questGroupByQuestUnique.GetQuestType() == 2)
                            {
                                newListItem.SetListItemData(7, string.Empty, questByQuestUnique, new EZValueChangedDelegate(this.ClickCancelQuest), null);
                            }
                            else
                            {
                                newListItem.SetListItemData(6, false);
                                newListItem.SetListItemData(7, false);
                            }
                            newListItem.Data = strQuestUnique;
                            this.m_kQuestList.Add(newListItem);
                            if (0 < num2)
                            {
                                num += this.m_kQuestList.itemSpacing;
                            }
                            num2++;
                        }
                    }
                }
            }
        }
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo != null)
        {
            ChallengeTable sequenceChallengeTable = NrTSingleton <ChallengeManager> .Instance.GetSequenceChallengeTable();

            if (sequenceChallengeTable != null && (int)sequenceChallengeTable.m_nLevel <= kMyCharInfo.GetLevel())
            {
                UserChallengeInfo userChallengeInfo = kMyCharInfo.GetUserChallengeInfo();
                if (userChallengeInfo != null && userChallengeInfo.GetLoadData())
                {
                    Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(sequenceChallengeTable.m_nUnique);
                    num += 80f;
                    this.m_kQuestList.LineHeight = 80f;
                    NewListItem newListItem2 = new NewListItem(this.m_kQuestList.ColumnNum, true, string.Empty);
                    newListItem2.SetListItemData(0, "Win_T_QuestTitleBK2", null, null, null);
                    newListItem2.SetListItemData(2, "Win_I_QuestMark02", null, null, null);
                    newListItem2.SetListItemData(3, this.m_ColorTitle + NrTSingleton <NrTextMgr> .Instance.GetTextFromChallenge(sequenceChallengeTable.m_szTitleTextKey), null, null, null);
                    string str = string.Empty;
                    string textFromChallenge = NrTSingleton <NrTextMgr> .Instance.GetTextFromChallenge(sequenceChallengeTable.m_kRewardInfo[0].m_szConditionTextKey);

                    if (textFromChallenge.Contains("count"))
                    {
                        if (userChallengeInfo2 == null)
                        {
                            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str, new object[]
                            {
                                textFromChallenge,
                                "count",
                                sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount,
                                "count1",
                                0,
                                "count2",
                                sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount
                            });

                            newListItem2.SetListItemData(5, this.m_ColorNormal + str, null, null, null);
                        }
                        else if (userChallengeInfo2.m_nValue >= (long)sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount)
                        {
                            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str, new object[]
                            {
                                textFromChallenge,
                                "count",
                                sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount,
                                "count1",
                                userChallengeInfo2.m_nValue,
                                "count2",
                                sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount
                            });

                            newListItem2.SetListItemData(5, this.m_ColorComplte + str, null, null, null);
                        }
                    }
                    else
                    {
                        str = textFromChallenge;
                        if (userChallengeInfo2 == null)
                        {
                            newListItem2.SetListItemData(5, this.m_ColorNormal + str, null, null, null);
                        }
                        else if (userChallengeInfo2.m_nValue >= (long)sequenceChallengeTable.m_kRewardInfo[0].m_nConditionCount)
                        {
                            newListItem2.SetListItemData(5, this.m_ColorComplte + str, null, null, null);
                        }
                        else
                        {
                            newListItem2.SetListItemData(5, this.m_ColorNormal + str, null, null, null);
                        }
                    }
                    newListItem2.SetListItemData(6, false);
                    newListItem2.SetListItemData(7, false);
                    newListItem2.Data = sequenceChallengeTable.m_nUnique.ToString() + this.m_ChallengeUniqueDistinguish;
                    this.m_kQuestList.Add(newListItem2);
                }
            }
        }
        base.SetSize(base.GetSizeX(), num);
        this.m_kQuestList.ResizeViewableArea(this.m_kQuestList.GetSize().x, num);
        NrTSingleton <NkQuestManager> .Instance.UpdateClientNpc(0);
    }
コード例 #8
0
    public ChallengeTable GetSequenceChallengeTable()
    {
        ChallengeTable challengeTable = null;
        NrMyCharInfo   kMyCharInfo    = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo == null)
        {
            return(null);
        }
        UserChallengeInfo userChallengeInfo = kMyCharInfo.GetUserChallengeInfo();

        if (userChallengeInfo == null)
        {
            return(null);
        }
        for (int i = 0; i < this.m_listChallengeData.Count; i++)
        {
            Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(this.m_listChallengeData[i].m_nUnique);
            if (userChallengeInfo2 == null)
            {
                if (challengeTable == null)
                {
                    challengeTable = this.m_listChallengeData[i];
                }
                break;
            }
            int j   = 0;
            int num = 64;
            while (j < this.m_listChallengeData[i].m_kRewardInfo.Count)
            {
                bool flag = false;
                if (j < num)
                {
                    long num2 = 1L << (j & 31);
                    if ((userChallengeInfo2.m_bGetReward1 & num2) == 0L)
                    {
                        flag = true;
                    }
                }
                else
                {
                    long num3 = 1L << (j - num & 31);
                    if ((userChallengeInfo2.m_bGetReward1 & num3) == 0L)
                    {
                        flag = true;
                    }
                }
                if (flag)
                {
                    challengeTable = this.m_listChallengeData[i];
                    break;
                }
                if (userChallengeInfo2.m_nValue >= (long)this.m_listChallengeData[i].m_kRewardInfo[j].m_nConditionCount)
                {
                    challengeTable = null;
                }
                j++;
            }
        }
        return(challengeTable);
    }
コード例 #9
0
    public int CalcContinueRewardNoticeCount()
    {
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo == null)
        {
            return(0);
        }
        UserChallengeInfo userChallengeInfo = kMyCharInfo.GetUserChallengeInfo();

        if (userChallengeInfo == null)
        {
            return(0);
        }
        short key = 3;

        if (!this.m_kChallenge.ContainsKey(key))
        {
            return(0);
        }
        int num  = 0;
        int num2 = 64;

        foreach (ChallengeTable current in this.m_kChallenge[key].Values)
        {
            if (current != null)
            {
                if ((int)current.m_nLevel <= kMyCharInfo.GetLevel())
                {
                    Challenge_Info userChallengeInfo2 = userChallengeInfo.GetUserChallengeInfo(current.m_nUnique);
                    if (userChallengeInfo2 != null)
                    {
                        if (current.m_nType != 1 && current.m_nType != 2)
                        {
                            int num3 = 0;
                            foreach (ChallengeTable.RewardInfo current2 in current.m_kRewardInfo)
                            {
                                bool flag = false;
                                if (num3 < num2)
                                {
                                    long num4 = 1L << (num3 & 31);
                                    if ((userChallengeInfo2.m_bGetReward1 & num4) == 0L)
                                    {
                                        flag = true;
                                    }
                                }
                                else
                                {
                                    long num5 = 1L << (num3 - num2 & 31);
                                    if ((userChallengeInfo2.m_bGetReward1 & num5) == 0L)
                                    {
                                        flag = true;
                                    }
                                }
                                if (userChallengeInfo2.m_nValue >= (long)current2.m_nConditionCount && flag)
                                {
                                    num++;
                                    break;
                                }
                                num3++;
                            }
                        }
                    }
                }
            }
        }
        this.m_nContinueRewardNoticeCount = num;
        return(this.m_nContinueRewardNoticeCount);
    }
コード例 #10
0
    public void Set_ChallengeInfo()
    {
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        if (kMyCharInfo == null)
        {
            return;
        }
        if (kMyCharInfo.GetUserChallengeInfo() == null)
        {
            return;
        }
        int    num = -1;
        string str = string.Empty;

        for (int i = 0; i < this.m_lstTimeShopTable.Count; i++)
        {
            if ((int)this.m_lstTimeShopTable[i].m_nLevel <= kMyCharInfo.GetLevel())
            {
                for (int j = 0; j < this.m_lstTimeShopTable[i].m_kRewardInfo.Count; j++)
                {
                    if (kMyCharInfo.GetLevel() < this.m_lstTimeShopTable[i].m_kRewardInfo[j].m_nConditionLevel)
                    {
                        num = j;
                        break;
                    }
                }
                if (num != -1)
                {
                    long charDetail = kMyCharInfo.GetCharDetail(12);
                    if (1L <= (charDetail & this.m_lstTimeShopTable[i].m_nCheckRewardValue))
                    {
                        if (i < this.m_lstTimeShopTable.Count - 1)
                        {
                            goto IL_492;
                        }
                        this.m_btnReward.SetEnabled(false);
                    }
                    this.m_dtMissionIcon.SetTexture(NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(this.m_lstTimeShopTable[i].m_szIconKey));
                    this.m_lbMissionTitle.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromChallenge(this.m_lstTimeShopTable[i].m_szTitleTextKey));
                    long num2 = (long)kMyCharInfo.GetDayCharDetail((eCHAR_DAY_COUNT)this.m_lstTimeShopTable[i].m_nDetailInfoIndex);
                    long num3;
                    if (num2 >= (long)this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nConditionCount)
                    {
                        str = NrTSingleton <CTextParser> .Instance.GetTextColor("1105");

                        num3 = (long)this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nConditionCount;
                    }
                    else
                    {
                        num3 = num2;
                        this.m_btnReward.SetEnabled(false);
                    }
                    string str2 = string.Empty;
                    string text = NrTSingleton <NrTextMgr> .Instance.GetTextFromChallenge(this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_szConditionTextKey);

                    if (text.Contains("count"))
                    {
                        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str2, new object[]
                        {
                            text,
                            "count",
                            this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nConditionCount,
                            "count1",
                            num3,
                            "count2",
                            this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nConditionCount
                        });
                    }
                    else
                    {
                        str2 = text;
                    }
                    this.m_lbMissionContent.SetText(str + str2);
                    if (this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nMoney > 0L)
                    {
                        this.m_dtItem.SetTexture(NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Main_I_ExtraI01"));
                        text = string.Empty;
                        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[]
                        {
                            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1119"),
                            "count",
                            this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nMoney
                        });

                        this.m_lbItemName.SetText(text);
                    }
                    else if (this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nItemUnique > 0)
                    {
                        this.m_dtItem.SetTexture(NrTSingleton <ItemManager> .Instance.GetItemTexture(this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nItemUnique));
                        text = string.Empty;
                        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[]
                        {
                            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697"),
                            "itemname",
                            NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nItemUnique),
                            "count",
                            this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nItemNum
                        });

                        this.m_lbItemName.SetText(text);
                    }
                    this.m_lbRewardInfo.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3331"));
                    this.m_btnReward.Data = this.m_lstTimeShopTable[i].m_nUnique;
                    break;
                }
            }
            IL_492 :;
        }
        this.m_bRequestReward = false;
    }