Пример #1
0
 public TestPriceBase(TestPriceBase other)
 {
     E                      = other.E;
     Ir                     = other.Ir;
     Dm                     = other.Dm;
     Proportion             = other.Proportion;
     Cc                     = other.Cc;
     TimeProductionInSecond = other.TimeProductionInSecond;
     PriceInE               = other.PriceInE;
 }
Пример #2
0
 private void _setProportion()
 {
     Proportion = new TestPriceBase
     {
         E  = 1,
         Ir = 2,
         Dm = 5,
         Cc = 10
     };
 }
        public void CalcMaxStorable(bool hasPremium, double progressBonus)
        {
            var premProductionMod = 1.5;
            var mod      = hasPremium ? premProductionMod : 1;
            var multiple = Level;

            if (Level == 1)
            {
                MaxStorable = new TestPriceBase(_defaultMaxStorable.E * mod, _defaultMaxStorable.Ir * mod, _defaultMaxStorable.Dm * mod);
                return;
            }
            MaxStorable = new TestPriceBase
            {
                E  = _defaultMaxStorable.E * Math.Pow(progressBonus, multiple) * mod,
                Ir = _defaultMaxStorable.Ir * Math.Pow(progressBonus, multiple) * mod,
                Dm = _defaultMaxStorable.Dm * Math.Pow(progressBonus, multiple) * mod,
            };
            MaxStorable.E  = Math.Floor(MaxStorable.E);
            MaxStorable.Ir = Math.Floor(MaxStorable.Ir);
            MaxStorable.Dm = Math.Floor(MaxStorable.Dm);
        }
 public TestEnergyConverter(int level, TestPriceBase bp) : base(level, bp)
 {
 }
 public TestShipyard(int level, TestPriceBase price) : base(level, price)
 {
 }
 public TestExtraction(int level, TestPriceBase bp) : base(level, bp)
 {
 }
 public TestStorage(int level, TestPriceBase price) : base(level, price)
 {
 }
 public TestBuildBase(int level, TestPriceBase bp) : base(bp)
 {
     Level = level;
     SetOtherTimers();
 }
Пример #9
0
 public TestTechPrice(int level, TestPriceBase bp) : base(level, bp)
 {
 }