@@ -325,8 +325,8 @@ Date date
325325 }
326326
327327 // Returns a dictionary with CK3 provinces that are mapped to Imperator provinces, grouped by faith.
328- public static IDictionary < string , ISet < Province > > GetProvincesFromImperatorByFaith ( ProvinceCollection ck3Provinces , Date date ) {
329- var provincesByFaith = new Dictionary < string , ISet < Province > > ( ) ;
328+ public static Dictionary < string , HashSet < Province > > GetProvincesFromImperatorByFaith ( ProvinceCollection ck3Provinces , Date date ) {
329+ var provincesByFaith = new Dictionary < string , HashSet < Province > > ( ) ;
330330
331331 foreach ( var province in ck3Provinces ) {
332332 var imperatorProvince = province . PrimaryImperatorProvince ;
@@ -342,7 +342,7 @@ public static IDictionary<string, ISet<Province>> GetProvincesFromImperatorByFai
342342 if ( provincesByFaith . TryGetValue ( faith , out var set ) ) {
343343 set . Add ( province ) ;
344344 } else {
345- provincesByFaith [ faith ] = new HashSet < Province > { province } ;
345+ provincesByFaith [ faith ] = [ province ] ;
346346 }
347347 }
348348
@@ -484,13 +484,13 @@ Date date
484484 title . SetHolder ( character , date ) ;
485485 }
486486
487- private List < Title > GetDynamicHolySiteBaroniesForFaith ( Faith faith , IDictionary < string , ISet < Province > > provincesByFaith ) {
487+ private List < Title > GetDynamicHolySiteBaroniesForFaith ( Faith faith , Dictionary < string , HashSet < Province > > provincesByFaith ) {
488488 // Collect all Imperator territories that are mapped to this faith.
489- ISet < Province > faithTerritories ;
489+ HashSet < Province > faithTerritories ;
490490 if ( provincesByFaith . TryGetValue ( faith . Id , out var set ) ) {
491491 faithTerritories = set ;
492492 } else {
493- faithTerritories = new HashSet < Province > ( ) ;
493+ faithTerritories = [ ] ;
494494 }
495495
496496 // Split the territories into 2 sets: territories that have a holy site and territories that do not.
0 commit comments