// Token: 0x06000E55 RID: 3669 RVA: 0x0006B33C File Offset: 0x0006973C protected override bool TryExecuteWorker(IncidentParms parms) { Map map = (Map)parms.target; int duration = Mathf.RoundToInt(this.def.durationDays.RandomInRange * 60000f); GameCondition_Warpstorm gameCondition_Warpstorm = (GameCondition_Warpstorm)GameConditionMaker.MakeCondition(OGGameConditionDefOf.OG_Warpstorm, duration); map.gameConditionManager.RegisterCondition(gameCondition_Warpstorm); base.SendStandardLetter(this.def.letterLabel, GameConditionDefOf.Flashstorm.letterText, this.def.letterDef, parms, new TargetInfo()); if (map.weatherManager.curWeather.rainRate > 0.1f) { map.weatherDecider.StartNextWeather(); } return(true); }
// Token: 0x06000E55 RID: 3669 RVA: 0x0006B33C File Offset: 0x0006973C protected override bool TryExecuteWorker(IncidentParms parms) { Map map = (Map)parms.target; int duration = Mathf.RoundToInt(this.def.durationDays.RandomInRange * 60000f); GameCondition_Warpstorm gameCondition_Warpstorm = (GameCondition_Warpstorm)GameConditionMaker.MakeCondition(OGGameConditionDefOf.OG_Warpstorm, duration, 0); map.gameConditionManager.RegisterCondition(gameCondition_Warpstorm); base.SendStandardLetter(new TargetInfo(gameCondition_Warpstorm.centerLocation.ToIntVec3, map, false), null, new string[0]); if (map.weatherManager.curWeather.rainRate > 0.1f) { map.weatherDecider.StartNextWeather(); } return(true); }