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)); }
private void Init(GeneratorUpgrade.UpgradeType type) { this.type = type; this.EnumValue = (int)type; }
public GeneratorUpgrade(GeneratorUpgrade.UpgradeType type) { this.Init(type); }