Beispiel #1
0
        public static void Postfix(GameObject go)
        {
            if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDOilWellCap))
            {
                return;
            }

            OilWellCap oilWellCap = go.GetComponent <OilWellCap>();

            if (oilWellCap == null)
            {
                Debug.LogWarning("oilWellCap was null");
                return;
            }

            BuildingElementEmitter buildingElementEmitter = go.AddComponent <BuildingElementEmitter>();

            buildingElementEmitter.emitRate       = oilWellCap.addGasRate;     // = 0.03333334f;
            buildingElementEmitter.temperature    = oilWellCap.gasTemperature; // = 573.15f;
            buildingElementEmitter.element        = oilWellCap.gasElement;     // = SimHashes.Methane;
            buildingElementEmitter.modifierOffset = new Vector2(2f, 2f);

            UnityEngine.Object.DestroyImmediate(oilWellCap);
            go.AddOrGet <WaterPurifier>();
        }
Beispiel #2
0
 public static void Postfix(GameObject go)
 {
     if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDMicrobeMusher))
     {
         return;
     }
     NoDupeHelper.SetAutomatic(go, go.GetComponent <MicrobeMusher>());
 }
Beispiel #3
0
 public static void Postfix(GameObject go)
 {
     if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDCookingStation))
     {
         return;
     }
     NoDupeHelper.SetAutomatic(go, go.GetComponent <CookingStation>());
 }
Beispiel #4
0
 public static void Postfix(GameObject go)
 {
     if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDClothingFabricator))
     {
         return;
     }
     NoDupeHelper.SetAutomatic(go, go.GetComponent <ComplexFabricator>());
 }
Beispiel #5
0
 public static void Postfix(GameObject go)
 {
     if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDMetalRefinery))
     {
         return;
     }
     NoDupeHelper.SetAutomatic(go, go.GetComponent <LiquidCooledRefinery>());
 }
Beispiel #6
0
        public static void Postfix(GameObject go)
        {
            if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDOilRefinery))
            {
                return;
            }

            OilRefinery oilRefinery = go.GetComponent <OilRefinery>();

            if (oilRefinery == null)
            {
                Debug.LogWarning("oilRefinery was null");
            }

            go.GetComponent <BuildingComplete>().isManuallyOperated = false;
            //go.GetComponent<OilRefinery>().enabled = false;
            UnityEngine.Object.DestroyImmediate(oilRefinery);

            go.AddOrGet <WaterPurifier>();
        }
Beispiel #7
0
 public static void Postfix(GameObject go)
 {
     NoDupeHelper.SetAutomatic(go, go.GetComponent <ComplexFabricator>());
 }
Beispiel #8
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDClothingFabricator));
 }
Beispiel #9
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDApothecary));
 }
Beispiel #10
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDOilWellCap));
 }
Beispiel #11
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDSupermaterialRefinery));
 }
Beispiel #12
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDRockCrusher));
 }
Beispiel #13
0
 public static void Postfix(GameObject go)
 {
     NoDupeHelper.SetAutomatic(go, go.GetComponent <LiquidCooledRefinery>());
 }
Beispiel #14
0
 public static void Postfix(GameObject go)
 {
     NoDupeHelper.SetAutomatic(go, go.GetComponent <GlassForge>());
 }
Beispiel #15
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDGlassForge));
 }
Beispiel #16
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDCookingStation));
 }
Beispiel #17
0
 public static void Postfix(GameObject go)
 {
     NoDupeHelper.SetAutomatic(go, go.GetComponent <CookingStation>());
 }
Beispiel #18
0
 public static void Postfix(GameObject go)
 {
     NoDupeHelper.SetAutomatic(go, go.GetComponent <MicrobeMusher>());
 }