Exemplo n.º 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>();
        }
Exemplo n.º 2
0
 public static void Postfix(GameObject go)
 {
     if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDMicrobeMusher))
     {
         return;
     }
     NoDupeHelper.SetAutomatic(go, go.GetComponent <MicrobeMusher>());
 }
Exemplo n.º 3
0
 public static void Postfix(GameObject go)
 {
     if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDCookingStation))
     {
         return;
     }
     NoDupeHelper.SetAutomatic(go, go.GetComponent <CookingStation>());
 }
Exemplo n.º 4
0
 public static void Postfix(GameObject go)
 {
     if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDClothingFabricator))
     {
         return;
     }
     NoDupeHelper.SetAutomatic(go, go.GetComponent <ComplexFabricator>());
 }
Exemplo n.º 5
0
 public static void Postfix(GameObject go)
 {
     if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDMetalRefinery))
     {
         return;
     }
     NoDupeHelper.SetAutomatic(go, go.GetComponent <LiquidCooledRefinery>());
 }
Exemplo n.º 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>();
        }
Exemplo n.º 7
0
 public static void Postfix(GameObject go)
 {
     NoDupeHelper.SetAutomatic(go, go.GetComponent <ComplexFabricator>());
 }
Exemplo n.º 8
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDClothingFabricator));
 }
Exemplo n.º 9
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDApothecary));
 }
Exemplo n.º 10
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDOilWellCap));
 }
Exemplo n.º 11
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDSupermaterialRefinery));
 }
Exemplo n.º 12
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDRockCrusher));
 }
Exemplo n.º 13
0
 public static void Postfix(GameObject go)
 {
     NoDupeHelper.SetAutomatic(go, go.GetComponent <LiquidCooledRefinery>());
 }
Exemplo n.º 14
0
 public static void Postfix(GameObject go)
 {
     NoDupeHelper.SetAutomatic(go, go.GetComponent <GlassForge>());
 }
Exemplo n.º 15
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDGlassForge));
 }
Exemplo n.º 16
0
 public static bool Prepare()
 {
     return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDCookingStation));
 }
Exemplo n.º 17
0
 public static void Postfix(GameObject go)
 {
     NoDupeHelper.SetAutomatic(go, go.GetComponent <CookingStation>());
 }
Exemplo n.º 18
0
 public static void Postfix(GameObject go)
 {
     NoDupeHelper.SetAutomatic(go, go.GetComponent <MicrobeMusher>());
 }