Skip to content

Commit

Permalink
Subject type fix (#633)
Browse files Browse the repository at this point in the history
Uses scripted effect to convert subject types at game start, so no invalid relationships exist
  • Loading branch information
CaesarVincens authored Feb 22, 2025
1 parent eb69a17 commit 54ca94f
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
GLOBAL = {
converter_colonial_confederation_cultures_effect = yes
converter_historical_leader_culture_effect = yes
every_country = {
limit = { is_subject = yes }
convert_subject_type = yes
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2947,4 +2947,89 @@ converter_decentralized_subjects_effect = {
set_country_type = unrecognized
set_local_variable = converter_was_decentralized_subject
}
}

convert_subject_type = {
if = {
limit = { overlord = { is_country_type = unrecognized } }
make_subject_of_unrecognized = yes
}
else_if = {
limit = { is_country_type = colonial }
make_colonial_subject = yes
}
else = {
make_recognized_subject = yes
}
}

make_subject_of_unrecognized = {
if = {
limit = {
OR = {
is_subject_type = subject_type_protectorate
is_subject_type = subject_type_dominion
is_subject_type = subject_type_chartered_company
}
}
set_variable = converter_made_into_tributary
change_subject_type = subject_type_tributary
}
else_if = {
limit = {
OR = {
is_subject_type = subject_type_colony
is_subject_type = subject_type_puppet
}
}
set_variable = converter_made_into_vassal
change_subject_type = subject_type_vassal
}
}

make_colonial_subject = {
if = {
limit = {
OR = {
is_subject_type = subject_type_protectorate
is_subject_type = subject_type_tributary
}
}
set_variable = converter_made_into_dominion
change_subject_type = subject_type_dominion
}
else_if = {
limit = {
OR = {
is_subject_type = subject_type_vassal
is_subject_type = subject_type_puppet
}
}
set_variable = converter_made_into_colony
change_subject_type = subject_type_colony
}
}

make_recognized_subject = {
if = {
limit = {
OR = {
is_subject_type = subject_type_dominion
is_subject_type = subject_type_chartered_company
is_subject_type = subject_type_tributary
}
}
set_variable = converter_made_into_protectorate
change_subject_type = subject_type_protectorate
}
else_if = {
limit = {
OR = {
is_subject_type = subject_type_vassal
is_subject_type = subject_type_colony
}
}
set_variable = converter_made_into_puppet
change_subject_type = subject_type_puppet
}
}

0 comments on commit 54ca94f

Please sign in to comment.