public override void Generate(Map map) { if (map.Biome != Util_CaveBiome.CaveBiomeDef) { // Nothing to do in other biomes. return; } // To avoid starting with standard Clear weather, immediately force to reselect a cave biome weather. map.weatherDecider.StartNextWeather(); MapCondition condition = MapConditionMaker.MakeConditionPermanent(Util_CaveBiome.CaveEnvironmentMapConditionDef); map.mapConditionManager.RegisterCondition(condition); }
public override void Generate() { Log.Message("GenStep_CaveInitializeWeather.Generate"); if (Find.Map.Biome != Util_CaveBiome.CaveBiomeDef) { // Nothing to do in other biomes. return; } // To avoid starting with standard Clear weather, immediately force to reselect a cave biome weather. Find.Storyteller.weatherDecider.StartNextWeather(); MapCondition condition = MapConditionMaker.MakeConditionPermanent(Util_CaveBiome.CaveEnvironmentMapConditionDef); Find.MapConditionManager.RegisterCondition(condition); }