Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent the Bosporan Kingdom formation through decision if it has a holder or de jure land #2394

Merged
merged 2 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@

# OpenCppCoverageStuff
*.log
ImperatorToCK3/.opencppcov/
ImperatorToCK3Tests/.opencppcov/
/ImperatorToCK3/.opencppcov/
/ImperatorToCK3Tests/.opencppcov/

# Output folders
Release/
ReleaseIntermediate/
Release-Linux/
Debug/
DebugIntermediate/
ImperatorToCK3.UnitTests/obj/
ImperatorToCK3/obj/
Publish/
Output/
/Release/
/ReleaseIntermediate/
/Release-Linux/
/Debug/
/DebugIntermediate/
/ImperatorToCK3.UnitTests/bin/
/ImperatorToCK3.UnitTests/obj/
/ImperatorToCK3/obj/
/Publish/
/Output/

DocsGenerator/bin/
DocsGenerator/obj/

log.txt
*.user
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
# Form Bosporan Kingdom
form_bosporan_kingdom_decision = {
picture = {
reference = "gfx/interface/illustrations/event_scenes/ep3_medi_estate.dds"
}
decision_group_type = major
sort_order = 50

is_shown = {
NOT = {
is_target_in_global_variable_list = {
name = unavailable_unique_decisions
target = flag:flag_bosporan_kingdom
}
}
culture = {
OR = {
has_cultural_pillar = heritage_central_germanic
has_cultural_pillar = heritage_byzantine
}
}
highest_held_title_tier <= tier_kingdom
any_held_title = {
OR = {
de_jure_liege = title:d_crimea
de_jure_liege = title:d_azov
this = title:d_crimea
this = title:d_azov
}
}
# IRToCK3: "Added this just making sure the kingdom doesn't have a holder or de jure land" ~~tanner918
title:k_bosporan_kingdom = {
AND = {
NOT = { exists = holder }
any_de_jure_county = {
count < 1
}
}
}
}

is_valid = {
completely_controls = title:d_crimea
completely_controls = title:d_azov
is_independent_ruler = yes
prestige_level >= 3
}

is_valid_showing_failures_only = {
is_landed = yes
}

effect = {
add_to_global_variable_list = {
name = unavailable_unique_decisions
target = flag:flag_bosporan_kingdom
}

house = {
add_house_modifier = {
modifier = bp3_bosporan_kingdom_modifier
years = 100
}
}

custom_tooltip = unlocks_black_sea_naval_conquest

hidden_effect = {
title:k_bosporan_kingdom = { set_de_jure_liege_title = title:d_crimea.empire }
}

create_title_and_vassal_change = {
type = created
save_scope_as = title_change
add_claim_on_loss = yes
}
title:k_bosporan_kingdom = {
change_title_holder = {
holder = root
change = scope:title_change
}
}
resolve_title_and_vassal_change = scope:title_change

add_character_modifier = bp3_conqueror_black_sea_modifier

title:d_crimea = { set_de_jure_liege_title = title:k_bosporan_kingdom }
title:d_azov = { set_de_jure_liege_title = title:k_bosporan_kingdom }
# Additional DeJures
adjust_de_jure_effect = {
TITLE = title:d_bugeac
DE_JURE = title:k_bosporan_kingdom
}
adjust_de_jure_effect = {
TITLE = title:d_yedisan
DE_JURE = title:k_bosporan_kingdom
}
adjust_de_jure_effect = {
TITLE = title:d_levedia
DE_JURE = title:k_bosporan_kingdom
}
adjust_de_jure_effect = {
TITLE = title:d_don_valley
DE_JURE = title:k_bosporan_kingdom
}

if = {
limit = {
province:5330 = {
has_holding_type = castle_holding
}
province:5277 = {
has_holding = no
}
}
province:5277 = {
begin_create_holding = castle_holding
}
}
}

cost = {
gold = {
value = 250
}
prestige = {
value = 2000
}
}

ai_check_interval = 1000

ai_potential = {
is_ruler = yes
short_term_gold >= {
value = major_gold_value
multiply = 1.5
round = yes
}
prestige >= {
value = major_prestige_gain
multiply = 3
round = yes
}
}

ai_will_do = {
base = 80
}
}
Loading