private static void ConvertBaseData(CPlayerProfile profile, MainTab mainTab, SubTab subTab, out uint winMvp, out uint loseMvp, out uint godLike, out uint tripleKill, out uint quataryKill, out uint pentaKill) { winMvp = 0u; loseMvp = 0u; godLike = 0u; tripleKill = 0u; quataryKill = 0u; pentaKill = 0u; if (mainTab == MainTab.MatchAll) { if (subTab == SubTab.MatchAll) { winMvp = profile.MVPCnt(); loseMvp = profile.LoseSoulCnt(); godLike = profile.HolyShit(); tripleKill = profile.TripleKill(); quataryKill = profile.QuataryKill(); pentaKill = profile.PentaKill(); } else { COMDT_HERO_STATISTIC_INFO cOMDT_HERO_STATISTIC_INFO = null; if (subTab == SubTab.Match5V5) { cOMDT_HERO_STATISTIC_INFO = profile.pvpExtraDetail.st5v5; } else if (subTab == SubTab.MatchRank) { cOMDT_HERO_STATISTIC_INFO = profile.pvpExtraDetail.stLadder; } else if (subTab == SubTab.MatchGuild) { cOMDT_HERO_STATISTIC_INFO = profile.pvpExtraDetail.stGuildMatch; } else if (subTab == SubTab.Match3V3) { cOMDT_HERO_STATISTIC_INFO = profile.pvpExtraDetail.st3v3; } else if (subTab == SubTab.Match1V1) { cOMDT_HERO_STATISTIC_INFO = profile.pvpExtraDetail.st1v1; } else if (subTab == SubTab.MatchEntertainment) { cOMDT_HERO_STATISTIC_INFO = profile.pvpExtraDetail.stEntertainment; } winMvp = cOMDT_HERO_STATISTIC_INFO.dwMvp; loseMvp = cOMDT_HERO_STATISTIC_INFO.dwLoseSoul; godLike = cOMDT_HERO_STATISTIC_INFO.dwGodLike; tripleKill = cOMDT_HERO_STATISTIC_INFO.dwTripleKill; quataryKill = cOMDT_HERO_STATISTIC_INFO.dwUltraKill; pentaKill = cOMDT_HERO_STATISTIC_INFO.dwRampage; } } else if (mainTab == MainTab.Match100) { byte b = 0; byte b2 = 0; CPlayerPvpInfoController.GetGameTypeAcntNum(subTab, out b, out b2); int num = 0; while ((long)num < (long)((ulong)profile.pvpExtraDetail.dwRecentNum)) { if (b == 0 || (profile.pvpExtraDetail.astRecentDetail[num].bGameType == b && profile.pvpExtraDetail.astRecentDetail[num].bMapAcntNum == b2)) { winMvp += profile.pvpExtraDetail.astRecentDetail[num].dwMvp; loseMvp += profile.pvpExtraDetail.astRecentDetail[num].dwLoseSoul; godLike += profile.pvpExtraDetail.astRecentDetail[num].dwGodLike; tripleKill += profile.pvpExtraDetail.astRecentDetail[num].dwTripleKill; quataryKill += profile.pvpExtraDetail.astRecentDetail[num].dwUltraKill; pentaKill += profile.pvpExtraDetail.astRecentDetail[num].dwRampage; } num++; } } }