예제 #1
0
        public new long DurationInMS(int shadowCloneCount)
        {
            long num = 9999999999999L;

            GeneratorUpgrade.UpgradeType upgradeType = this.type;
            if (upgradeType != GeneratorUpgrade.UpgradeType.max_capacity)
            {
                if (upgradeType != GeneratorUpgrade.UpgradeType.money_gain)
                {
                    if (upgradeType == GeneratorUpgrade.UpgradeType.speed)
                    {
                        num = 1000000000000L;
                    }
                }
                else
                {
                    num = 1000000000000L;
                }
            }
            else
            {
                num = 1000000000000L;
            }
            if (shadowCloneCount == 0)
            {
                return(num);
            }
            return(num / (long)shadowCloneCount * (long)(1 + this.Level.ToInt() * 2));
        }
예제 #2
0
 private void Init(GeneratorUpgrade.UpgradeType type)
 {
     this.type      = type;
     this.EnumValue = (int)type;
 }
예제 #3
0
 public GeneratorUpgrade(GeneratorUpgrade.UpgradeType type)
 {
     this.Init(type);
 }