From f77a62808948964f7ec4d3c54c23af3ed8e63bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hora=C8=9Biu=20Mlendea?= Date: Sat, 6 Jul 2024 22:05:52 +0300 Subject: [PATCH] hoi4: Make HOI4 events fire less frequently --- MoreCulturalNamesBuilder/Service/ModBuilders/HOI4ModBuilder.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MoreCulturalNamesBuilder/Service/ModBuilders/HOI4ModBuilder.cs b/MoreCulturalNamesBuilder/Service/ModBuilders/HOI4ModBuilder.cs index 2ff622c..6c9ed3b 100644 --- a/MoreCulturalNamesBuilder/Service/ModBuilders/HOI4ModBuilder.cs +++ b/MoreCulturalNamesBuilder/Service/ModBuilders/HOI4ModBuilder.cs @@ -16,6 +16,7 @@ namespace MoreCulturalNamesBuilder.Service.ModBuilders { public sealed class HOI4ModBuilder : ModBuilder { + const int MeanTimeToHappenInDays = 30; const string EventsFileNameFormat = "873_mcn_{0}.txt"; readonly ILocalisationFetcher localisationFetcher; @@ -190,7 +191,7 @@ string GenerateStateEventForCountry(GameId stateGameId, string countryTag) $" picture = GFX_report_event_german_reichstag_gathering" + Environment.NewLine + $" hidden = yes" + Environment.NewLine + $" trigger = {{ {countryTag} = {{ owns_state = {stateGameId.Id} }} }}" + Environment.NewLine + - $" mean_time_to_happen = {{ days = 3 }}" + Environment.NewLine + + $" mean_time_to_happen = {{ days = {MeanTimeToHappenInDays} }}" + Environment.NewLine + $" immediate = {{" + Environment.NewLine + $" hidden_effect = {{" + Environment.NewLine;