diff --git a/ck2_mods/build_ck2tweaks b/ck2_mods/build_ck2tweaks index ada4cc3a..8fb027b8 100755 --- a/ck2_mods/build_ck2tweaks +++ b/ck2_mods/build_ck2tweaks @@ -573,6 +573,26 @@ class CK2TweaksModBuilder < ParadoxModBuilder::CK2 end end + # Because it's a portage, only use with allow_everyone_river_access! + def suez_canal! + # 1382 - Gulf of Suez + # 939 - Nile Delta + # 789 - Pelusia + patch_file!("map/adjacencies.csv", reencode: "iso-8859-1") do |content| + [ + content, + "939;1382;portage;789;-1;-1;-1;-1;Suez Canal", + ].join("\r\n") + end + # Merge both oceans + patch_mod_file!("map/default.map") do |map| + map.delete_if{|k,v| + k == "ocean_region" and v == PropertyList["sea_zones", [5, 6, 7, 8]] + } + map["ocean_region"]["sea_zones"] = [1,2,3,4,5,6,7,8] + end + end + def build_mod_files! ### General fixes: no_dynastic_country_names! @@ -593,6 +613,7 @@ class CK2TweaksModBuilder < ParadoxModBuilder::CK2 fast_de_jure_drift! allow_everyone_river_access! disable_fucking_hints! + suez_canal! ### Specific things for specific campaign, kept for reference: # create_hunie_trait!