Beispiel #1
0
        public void RemoveEmployerIdFromLandedCharacters(Title.LandedTitles titles, Date conversionDate)
        {
            var landedCharacterIds = titles.GetHolderIds(conversionDate);

            foreach (var character in this.Where(character => landedCharacterIds.Contains(character.Id)))
            {
                character.EmployerId = null;
            }
        }
Beispiel #2
0
        public void PurgeLandlessVanillaCharacters(Title.LandedTitles titles, Date ck3BookmarkDate)
        {
            var landedCharacterIds = titles.GetHolderIds(ck3BookmarkDate);
            var farewellIds        = dict.Keys.Where(
                id => !id.StartsWith("imperator") && !landedCharacterIds.Contains(id)
                );

            foreach (var characterId in farewellIds)
            {
                this[characterId].BreakAllLinks();
                Remove(characterId);
            }
            Logger.Info($"Purged {farewellIds.Count()} landless vanilla characters.");
        }