Skip to content

Commit

Permalink
Merge pull request #72 from hmlendea/ck3
Browse files Browse the repository at this point in the history
Removed support for CK3 1.4
  • Loading branch information
hmlendea authored May 17, 2024
2 parents 3a172ae + 18306b1 commit 29cd1e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 200 deletions.
179 changes: 0 additions & 179 deletions MoreCulturalNamesBuilder/Service/ModBuilders/CK3v14ModBuilder.cs

This file was deleted.

27 changes: 6 additions & 21 deletions MoreCulturalNamesBuilder/Service/ModBuilders/ModBuilderFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,12 @@ public IModBuilder GetModBuilder(Settings settings)

if (normalisedGame.StartsWith("CK3"))
{
Version ck3version = Version.Parse(settings.Mod.GameVersion.Replace(".*", string.Empty));
Version ck3version14 = Version.Parse("1.4");

if (ck3version > ck3version14)
{
return new CK3ModBuilder(
localisationFetcher,
nameNormaliser,
languageRepository,
locationRepository,
settings);
}
else
{
return new CK3v14ModBuilder(
localisationFetcher,
nameNormaliser,
languageRepository,
locationRepository,
settings);
}
return new CK3ModBuilder(
localisationFetcher,
nameNormaliser,
languageRepository,
locationRepository,
settings);
}

if (normalisedGame.StartsWith("HOI4"))
Expand Down

0 comments on commit 29cd1e3

Please sign in to comment.