Пример #1
0
        public IActionResult GetSarjat(
            int kaudetAlku  = 1994,
            int kaudetLoppu = 2019
            )
        {
            IBasicParams basicParams = new BasicParams(kaudetAlku, kaudetLoppu);

            string data = query.apuSarjat(basicParams);

            return(returnStatusHandler.handleResultString(data));
        }
Пример #2
0
        public IActionResult GetJoukkueet(
            int kaudetAlku    = 1994,
            int kaudetLoppu   = 2019,
            string sarja      = "",
            string sarjavaihe = ""
            )
        {
            IBasicParams basicParams = new BasicParams(kaudetAlku, kaudetLoppu, sarja, sarjavaihe);

            string data = query.apuJoukkueet(basicParams);

            return(returnStatusHandler.handleResultString(data));
        }
Пример #3
0
    public int GetCharacteristics(MonstersManager.Characteristic characteristics, int grade, int level, GeneralQuality quality)
    {
        float stat = MonstersManager.GetMonsterCharacteristics(characteristics, m_Params.Params.MobType, grade, level, m_Params.Params.m_NaturalGrade);

        stat *= m_Params.CharacteristicKoeff[(int)characteristics];
        if (IsAwakened(quality))
        {
            float k = BasicParams.GetGradesInfo().GeneralInfo.Awakening * 0.01f / 3;
            if (k > 0.001f)
            {
                stat *= (1 + k);
            }
        }
        return(HelpMethods.Round(stat));
    }
Пример #4
0
        public IActionResult GetLukkarit(
            int kaudetAlku    = 1994,
            int kaudetLoppu   = 2020,
            string sarja      = "",
            string sarjavaihe = ""
            )
        {
            IBasicParams basicParams = new BasicParams(kaudetAlku, kaudetLoppu, sarja, sarjavaihe);

            Console.WriteLine(Request.Body);
            Console.WriteLine(Request.Query);
            Console.WriteLine(Request.QueryString);
            string data = query.apuLukkarit(basicParams);

            return(returnStatusHandler.handleResultString(data));
        }