コード例 #1
0
        public float PercentOfTimeBelow60Percent = 0.57f; //TODO: Make this dynamic/customizable

		public CatRotationCalculation GetOptimalRotation()
		{
			CatRotationCalculation highestDPSRotation = new CatRotationCalculation();
			for (int roarCP = 1; roarCP <= 5; roarCP++)
				for (int poolBites = 0; poolBites <= (BiteStats.MaxExtraEnergy == 0 ? 1 : 2); poolBites++)
				{
					var rotation = CalculateRotation(roarCP, (BiteUsage)poolBites);
					if (rotation.DPS > highestDPSRotation.DPS)
						highestDPSRotation = rotation;
				}

			return highestDPSRotation;
		}
コード例 #2
0
        public float PercentOfTimeBelow60Percent = 0.57f; //TODO: Make this dynamic/customizable

        public CatRotationCalculation GetOptimalRotation()
        {
            CatRotationCalculation highestDPSRotation = new CatRotationCalculation();

            for (int roarCP = 1; roarCP <= 5; roarCP++)
            {
                for (int poolBites = 0; poolBites <= (BiteStats.MaxExtraEnergy == 0 ? 1 : 2); poolBites++)
                {
                    var rotation = CalculateRotation(roarCP, (BiteUsage)poolBites);
                    if (rotation.DPS > highestDPSRotation.DPS)
                    {
                        highestDPSRotation = rotation;
                    }
                }
            }

            return(highestDPSRotation);
        }