public static double InterceptPower(this Zone zone) { var def = zone.CardsAttributes(f => f.Defend).Average() * 0.8; var mid = zone.CardsAttributes(f => f.Midfield).Average() * 0.6; return((def + mid) / 2); }
public static double ShootPower(this Zone zone) { var att = zone.CardsAttributes(f => f.Attack).Average(); var rank = zone.CardsAttributes(f => f.Rank).Average(); return(Math.Min(att, rank)); }
public static double PassPower(this Zone zone) { var totalAvgDef = zone.CardsAttributes(f => f.Defend).Average(); var totalAvgMid = zone.CardsAttributes(f => f.Midfield).Average(); var totalAvgAtt = zone.CardsAttributes(f => f.Attack).Average(); return((totalAvgDef + totalAvgMid + totalAvgAtt) / 3); }
public static double PressurePower(this Zone zone) => zone.CardsAttributes(f => f.Rank).Average() * rand.NextDouble();
public static double DefendPower(this Zone zone) => zone.CardsAttributes(f => f.Defend).Average();