@@ -27,9 +27,9 @@ using std::optional;
2727
2828
2929CK3::World::World (const Imperator::World& impWorld, const Configuration& theConfiguration, const commonItems::ConverterVersion& converterVersion) {
30- LOG (LogLevel::Info) << " *** Hello CK3, let's get painting. ***" ;
30+ Log (LogLevel::Info) << " *** Hello CK3, let's get painting. ***" ;
3131 // Scraping localizations from Imperator so we may know proper names for our countries.
32- localizationMapper.scrapeLocalizations (theConfiguration, map<string, string> ()); // passes an empty map as second arg because we don't actually load mods yet
32+ localizationMapper.scrapeLocalizations (theConfiguration, impWorld. getMods ());
3333
3434 // Loading Imperator CoAs to use them for generated CK3 titles
3535 coaMapper = mappers::CoaMapper (theConfiguration);
@@ -73,12 +73,12 @@ CK3::World::World(const Imperator::World& impWorld, const Configuration& theConf
7373
7474
7575void CK3::World::importImperatorCharacters (const Imperator::World& impWorld, const bool ConvertBirthAndDeathDates = true , const date endDate = date(867 , 1 , 1 )) {
76- LOG (LogLevel::Info) << " -> Importing Imperator Characters" ;
76+ Log (LogLevel::Info) << " -> Importing Imperator Characters" ;
7777
7878 for (const auto & character : impWorld.getCharacters ()) {
7979 importImperatorCharacter (character, ConvertBirthAndDeathDates, endDate);
8080 }
81- LOG (LogLevel::Info) << " >> " << characters.size () << " total characters recognized." ;
81+ Log (LogLevel::Info) << " >> " << characters.size () << " total characters recognized." ;
8282}
8383
8484
@@ -103,14 +103,14 @@ void CK3::World::importImperatorCharacter(const pair<unsigned long long, shared_
103103
104104
105105void CK3::World::importImperatorCountries (const map<unsigned long long , shared_ptr<Imperator::Country>>& imperatorCountries) {
106- LOG (LogLevel::Info) << " -> Importing Imperator Countries" ;
106+ Log (LogLevel::Info) << " -> Importing Imperator Countries" ;
107107
108108 // landedTitles holds all titles imported from CK3. We'll now overwrite some and
109109 // add new ones from Imperator tags.
110110 for (const auto & title : imperatorCountries) {
111111 importImperatorCountry (title, imperatorCountries);
112112 }
113- LOG (LogLevel::Info) << " >> " << getTitles ().size () << " total countries recognized." ;
113+ Log (LogLevel::Info) << " >> " << getTitles ().size () << " total countries recognized." ;
114114}
115115
116116
@@ -142,7 +142,7 @@ void CK3::World::importImperatorCountry(const pair<unsigned long long, shared_pt
142142
143143
144144void CK3::World::importVanillaProvinces (const string& ck3Path) {
145- LOG (LogLevel::Info) << " -> Importing Vanilla Provinces" ;
145+ Log (LogLevel::Info) << " -> Importing Vanilla Provinces" ;
146146 // ---- Loading history/provinces
147147 auto fileNames = commonItems::GetAllFilesInFolderRecursive (ck3Path + " /game/history/provinces" );
148148 for (const auto & fileName : fileNames) {
@@ -193,12 +193,12 @@ void CK3::World::importVanillaProvinces(const string& ck3Path) {
193193 }
194194
195195
196- LOG (LogLevel::Info) << " >> Loaded " << provinces.size () << " province definitions." ;
196+ Log (LogLevel::Info) << " >> Loaded " << provinces.size () << " province definitions." ;
197197}
198198
199199
200200void CK3::World::importImperatorProvinces (const Imperator::World& impWorld) {
201- LOG (LogLevel::Info) << " -> Importing Imperator Provinces" ;
201+ Log (LogLevel::Info) << " -> Importing Imperator Provinces" ;
202202 auto counter = 0 ;
203203 // Imperator provinces map to a subset of CK3 provinces. We'll only rewrite those we are responsible for.
204204 for (const auto & [provinceID, province] : provinces) {
@@ -218,7 +218,7 @@ void CK3::World::importImperatorProvinces(const Imperator::World& impWorld) {
218218 // And finally, initialize it.
219219 ++counter;
220220 }
221- LOG (LogLevel::Info) << " >> " << impWorld.getProvinces ().size () << " Imperator provinces imported into " << counter << " CK3 provinces." ;
221+ Log (LogLevel::Info) << " >> " << impWorld.getProvinces ().size () << " Imperator provinces imported into " << counter << " CK3 provinces." ;
222222}
223223
224224
@@ -293,7 +293,7 @@ void CK3::World::overWriteCountiesHistory() {
293293 for (const auto & title : getTitles () | std::views::values) {
294294 if (title->getRank ()==TitleRank::county && title->capitalBaronyProvince > 0 ) { // title is a county and its capital province has a valid ID (0 is not a valid province in CK3)
295295 if (!provinces.contains (title->capitalBaronyProvince ))
296- LOG (LogLevel::Warning) << " Capital barony province not found " << title->capitalBaronyProvince ;
296+ Log (LogLevel::Warning) << " Capital barony province not found " << title->capitalBaronyProvince ;
297297 else {
298298 const auto & impProvince = provinces.find (title->capitalBaronyProvince )->second ->getImperatorProvince ();
299299 if (impProvince) {
@@ -427,7 +427,7 @@ void CK3::World::linkMothersAndFathers() {
427427
428428
429429void CK3::World::importImperatorFamilies (const Imperator::World& impWorld) {
430- LOG (LogLevel::Info) << " -> Importing Imperator Families" ;
430+ Log (LogLevel::Info) << " -> Importing Imperator Families" ;
431431
432432 // dynasties only holds dynasties converted from Imperator families, as vanilla ones aren't modified
433433 for (const auto & family : impWorld.getFamilies () | std::views::values) {
@@ -437,5 +437,5 @@ void CK3::World::importImperatorFamilies(const Imperator::World& impWorld) {
437437 auto newDynasty = make_shared<Dynasty>(*family, localizationMapper);
438438 dynasties.emplace (newDynasty->getID (), newDynasty);
439439 }
440- LOG (LogLevel::Info) << " >> " << dynasties.size () << " total families imported." ;
440+ Log (LogLevel::Info) << " >> " << dynasties.size () << " total families imported." ;
441441}
0 commit comments