public static void Prefix() { if (!InterfaceManager.IsMainMenuActive()) { HouseLights.Init(); HouseLights.GetSwitches(); } }
public static void Prefix() { /*if (!InterfaceManager.IsMainMenuActive()) * { * HouseLights.Init(); * HouseLights.GetSwitches(); * }*/ if (!InterfaceManager.IsMainMenuActive() && (!GameManager.IsOutDoorsScene(GameManager.m_ActiveScene) || HouseLights.notReallyOutdoors.Contains(GameManager.m_ActiveScene))) { HouseLights.Init(); HouseLights.GetSwitches(); } }
private static void Postfix(MissionServicesManager __instance) { // Fire_Update_Prefix will not run if there are no fire sources (eg post office) if (Settings.options.stoveGenerator) { HouseLights.stoveHeatRatio = 0f; } else { HouseLights.stoveHeatRatio = 1f; } // if not stove generator, scan extenral and indoors scenes, if using it, scan only internal ones if (!Settings.options.stoveGenerator || (Settings.options.stoveGenerator && GameManager.GetWeatherComponent().IsIndoorScene())) { HouseLights.stoveTempIncr = 0f; HouseLights.GetSwitches(); } }