示例#1
0
    public BigDouble TotalPowerPerSecond()
    {
        BigDouble temp = 0;

        temp += (1 - (1 * pollution.pollutionBoost)) * data.productionUpgrade1Level;
        temp += (5 - (5 * pollution.pollutionBoost)) * data.productionUpgrade2Level;
        temp += (10 - (10 * pollution.pollutionBoost)) * data.productionUpgrade3Level;
        temp += (100 - (100 * pollution.pollutionBoost)) * data.productionUpgrade4Level;
        temp += (1e3 - (1e3 * pollution.pollutionBoost)) * data.productionUpgrade5Level;
        temp += (1e4 - (1e4 * pollution.pollutionBoost)) * data.productionUpgrade6Level;
        temp += (1e7 - (1e7 * pollution.pollutionBoost)) * data.productionUpgrade7Level;
        temp += (1e10 - (1e10 * pollution.pollutionBoost)) * data.productionUpgrade8Level;
        if (data.infusionULevel1 > 0)
        {
            temp += temp * (0.05 * data.infusionULevel1);
        }
        if (data.byteInfusionULevel1 > 0)
        {
            temp += temp * (0.05 * data.byteInfusionULevel1);
        }
        if (temp <= 0)
        {
            temp = 0;
        }
        if (data.hasMastered)
        {
            temp += dysonSphere.SpherePowerPerSec();
        }
        if (data.isConsoleUnlocked)
        {
            temp *= console.BytesBoost();
        }
        if (data.isConsoleOn)
        {
            temp -= 10;
        }
        return(temp);
    }