Beispiel #1
0
        public static float GetMaxCapacity(Pressurized pressure)
        {
            ConduitFlow manager = Conduit.GetFlowManager(pressure.ConduitType);

            if (IsDefault(pressure))
            {
                return(manager.MaxMass());
            }
            else
            {
                return(pressure.Info.IncreaseMultiplier * manager.MaxMass());
            }
        }
Beispiel #2
0
 public static bool IsDefault(Pressurized pressure)
 {
     return(pressure == null || pressure.Info == null || pressure.Info.IsDefault);
 }