예제 #1
0
        public static int GetDSProcessCount()
        {
            string text = FeatureMatrix.GetString("DSProcessCount").ToUpper();

            if (text == "" || text == null)
            {
                return(0);
            }
            if (text.Contains('C'))
            {
                int    num  = text.IndexOf('C');
                string str  = text.Substring(0, num);
                string str2 = (text.Length > num) ? text.Substring(num + 1) : "";
                return(DSService.ToInt(str, 1) * DSService.GetCoreCount() + DSService.ToInt(str2, 0));
            }
            return(DSService.ToInt(text, 1));
        }
예제 #2
0
        public static int ReCheckCount(int idStart, int count)
        {
            if (!FeatureMatrix.IsEnable("DSNormalRaid") || idStart < ServiceCoreSettings.Default.DSGiantCount || ServiceCoreSettings.Default.DSGiantCount < 0)
            {
                return(count);
            }
            string text = FeatureMatrix.GetString("DSNormalCount").ToUpper();

            if (text == "" || text == null)
            {
                return(0);
            }
            if (text.Contains("P"))
            {
                int    num  = text.IndexOf('P');
                string str  = text.Substring(0, num);
                string str2 = (text.Length > num) ? text.Substring(num + 1) : "";
                return(DSService.ToInt(str, 1) * count + DSService.ToInt(str2, 0));
            }
            return(DSService.ToInt(text, 1));
        }