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); }
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); }