/*
         * public double X2Profit {
         *  get {
         *      int countOfValidBonuses = x2ProfitBonuses.Count(date => date > Services.TimeService.Now);
         *      return (countOfValidBonuses > 0) ? countOfValidBonuses * 2 : 1;
         *  }
         * }
         *
         * public double X2Time {
         *  get {
         *      int countOfValidBonuses = x2TimeBonuses.Count(date => date > Services.TimeService.Now);
         *      return (countOfValidBonuses > 0) ? countOfValidBonuses * 2 : 1.0;
         *  }
         * }*/

        public void ClearExpiredBoosts(int currentTime)
        {
            ProfitBoosts.ClearExpired(currentTime);
            TimeBoosts.ClearExpired(currentTime);
            foreach (var gen in generatorList)
            {
                gen.ClearExpiredBoosts(currentTime);
            }
        }
示例#2
0
 public void ClearExpiredBoosts(int currentTime)
 {
     ProfitBoosts.ClearExpired(currentTime);
     TimeBoosts.ClearExpired(currentTime);
 }