public void Execute() { if (incident.TargetAllowed(target)) { // This is basically taken from Dialog_DebugActionMenu (debug menu source) IncidentParms parms = StorytellerUtility.DefaultParmsNow(incident.category, target); if (incident.pointsScaleable) { StorytellerComp stComp = Find.Storyteller.storytellerComps.First((StorytellerComp x) => x is StorytellerComp_OnOffCycle || x is StorytellerComp_RandomMain); parms = stComp.GenerateParms(incident.category, parms.target); } incident.Worker.TryExecute(parms); } else { Utils.LogDebugWarning($"Event target was invalid"); } }