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>(); }
public static void Postfix(GameObject go) { if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDMicrobeMusher)) { return; } NoDupeHelper.SetAutomatic(go, go.GetComponent <MicrobeMusher>()); }
public static void Postfix(GameObject go) { if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDCookingStation)) { return; } NoDupeHelper.SetAutomatic(go, go.GetComponent <CookingStation>()); }
public static void Postfix(GameObject go) { if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDClothingFabricator)) { return; } NoDupeHelper.SetAutomatic(go, go.GetComponent <ComplexFabricator>()); }
public static void Postfix(GameObject go) { if (!NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDMetalRefinery)) { return; } NoDupeHelper.SetAutomatic(go, go.GetComponent <LiquidCooledRefinery>()); }
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>(); }
public static void Postfix(GameObject go) { NoDupeHelper.SetAutomatic(go, go.GetComponent <ComplexFabricator>()); }
public static bool Prepare() { return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDClothingFabricator)); }
public static bool Prepare() { return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDApothecary)); }
public static bool Prepare() { return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDOilWellCap)); }
public static bool Prepare() { return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDSupermaterialRefinery)); }
public static bool Prepare() { return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDRockCrusher)); }
public static void Postfix(GameObject go) { NoDupeHelper.SetAutomatic(go, go.GetComponent <LiquidCooledRefinery>()); }
public static void Postfix(GameObject go) { NoDupeHelper.SetAutomatic(go, go.GetComponent <GlassForge>()); }
public static bool Prepare() { return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDGlassForge)); }
public static bool Prepare() { return(NoDupeHelper.CheckConfig(CustomizeBuildingsState.IDCookingStation)); }
public static void Postfix(GameObject go) { NoDupeHelper.SetAutomatic(go, go.GetComponent <CookingStation>()); }
public static void Postfix(GameObject go) { NoDupeHelper.SetAutomatic(go, go.GetComponent <MicrobeMusher>()); }