Exemplo n.º 1
0
        public int PotencyFormula(CreateSkill sp)
        {
            double potencyTotal = (double)sp.SkillPotency * (double)sp.SkillPotency.ToString().Length;
            double total        = (sp.dmg_type == DamageType.Magic) ? (double)matk.Current + potencyTotal : (double)patk.Current + potencyTotal;

            return((int)total);
        }
Exemplo n.º 2
0
        public CreateSkill FindSkillByName(string query)
        {
            CreateSkill p = null;

            foreach (CreateSkill x in CurrentJob.ReturnOwnedJobSkills)
            {
                if (x.SkillName.ToLower() == query.ToLower())
                {
                    p = x;
                    break;
                }
            }
            return(p);
        }