Skip to content

Commit

Permalink
Suez Canal
Browse files Browse the repository at this point in the history
  • Loading branch information
taw committed Jul 15, 2015
1 parent 60c188c commit b704216
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ck2_mods/build_ck2tweaks
Expand Up @@ -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!
Expand All @@ -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!
Expand Down

0 comments on commit b704216

Please sign in to comment.