public string SetupGeneration(int generation) { Servers.Clear(); Servers.Add(_serversToAdd[0].PoolName, _serversToAdd[0]); // smpps for(int i=1;i<=generation;++i) { Servers.Add(_serversToAdd[i].PoolName, _serversToAdd[i]); } var title = string.Format("Prop.Pools-{0}RT", generation); Strategy = new MinRoundTime(Difficulty); return title; }
public string SetupGeneration(int generation) { _curGeneration = generation; var x = (generation - 1) / _statSummary.Columns.Count; var y = (generation - 1)%_statSummary.Columns.Count; Servers["slush"].BaseProgress = (float)Convert.ToDouble(_statSummary.Rows[x]); Servers["slush"].PenaltyFactor = (float)Convert.ToDouble(_statSummary.Columns[y]); var title = string.Format("{0}{1:0.00}-{2:0.00}", _statSummary.StatName, Servers["slush"].BaseProgress, Servers["slush"].PenaltyFactor); Strategy = new MinRoundShare(Difficulty); return title; }
public string SetupGeneration(int generation) { _curGeneration = generation; var threshold = 0.235f + 0.005f * generation; var title = string.Format("{0}-{1:0.000}", _statSummary.StatName, threshold); Strategy = new MinRoundShare(Difficulty) {Threshold = threshold}; return title; }