private static void AssignValues(ref StorytellerDefExtension modExtension)
 {
     modExtension.storytellerThreat = new StorytellerThreat();
     modExtension.storytellerThreat.allDamagesMultiplier            = IgorRaidMechanicsMod.settings.damageMultiplier;
     modExtension.storytellerThreat.disableThreatsAtPopulationCount = IgorRaidMechanicsMod.settings.disableThreatsAtPopulationCount;
     modExtension.storytellerThreat.goodIncidents = IgorRaidMechanicsMod.settings.goodIncidents;
 }
        public static void DoDefsAlter()
        {
            if (IgorRaidMechanicsMod.settings.firstTimeInit)
            {
                IgorRaidMechanicsMod.settings.damageMultiplier = 2f;
                IgorRaidMechanicsMod.settings.disableThreatsAtPopulationCount = 1;
                IgorRaidMechanicsMod.settings.goodIncidents = IgorRaidMechanicsMod.settings.baseGoodIncidents.ListFullCopy();
                IgorRaidMechanicsMod.settings.firstTimeInit = false;
            }

            foreach (var storytellerDef in DefDatabase <StorytellerDef> .AllDefs)
            {
                var modExtension = storytellerDef.GetModExtension <StorytellerDefExtension>();
                if (modExtension is null)
                {
                    modExtension = new StorytellerDefExtension();
                    if (storytellerDef.modExtensions is null)
                    {
                        storytellerDef.modExtensions = new List <DefModExtension>();
                    }
                    storytellerDef.modExtensions.Add(modExtension);
                }
                AssignValues(ref modExtension);
            }
        }