public static float getCompressorSpeed(float orig, T4_ParticleCompressor filter)
        {
            if (!config.getBoolean(FTConfig.ConfigEntries.GAS_SPEED))
            {
                return(orig);
            }
            float f = filter.mrCurrentPower / filter.mrMaxPower;

            if (f < 0.5)
            {
                return(orig);
            }
            float ratio = Math.Min(4F, (f - 0.5F) * 2 * 4.1F);

            return(ratio * orig);
        }
Exemplo n.º 2
0
        public static float getCompressorSpeed(float orig, T4_ParticleCompressor filter)
        {
            if (!DifficultySettings.mbCasualResource)
            {
                return(orig);
            }
            float f = filter.mrCurrentPower / filter.mrMaxPower;

            if (f < 0.5)
            {
                return(orig);
            }
            float ratio = Math.Min(4F, (f - 0.5F) * 2 * 4.1F);

            return(ratio * orig);
        }