Skip to content

Commit

Permalink
Merge pull request #352 from Cold-War-Project/korea-decision
Browse files Browse the repository at this point in the history
Korea unification decision
  • Loading branch information
Arcadyi authored Jun 26, 2023
2 parents eb23572 + 059f38b commit 0ccef20
Show file tree
Hide file tree
Showing 11 changed files with 334 additions and 124 deletions.
44 changes: 44 additions & 0 deletions common/country_creation/00_releasable_countries.txt
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,47 @@ BRL = {

ai_will_do = { always = no }
}

ROK = {
states = {
STATE_SEOUL
STATE_YANGHO
STATE_BUSAN
STATE_PYONGYANG
STATE_SARIWON
}

possible = {
NOT = {
has_law = law_type:law_council_elective
}
owns_entire_state_region = STATE_SEOUL
owns_entire_state_region = STATE_YANGHO
owns_entire_state_region = STATE_BUSAN
owns_entire_state_region = STATE_PYONGYANG
owns_entire_state_region = STATE_SARIWON
}

ai_will_do = { always = no }
}

NRK = {
states = {
STATE_SEOUL
STATE_YANGHO
STATE_BUSAN
STATE_PYONGYANG
STATE_SARIWON
}

possible = {
has_law = law_type:law_council_elective
owns_entire_state_region = STATE_SEOUL
owns_entire_state_region = STATE_YANGHO
owns_entire_state_region = STATE_BUSAN
owns_entire_state_region = STATE_PYONGYANG
owns_entire_state_region = STATE_SARIWON
}

ai_will_do = { always = no }
}
181 changes: 181 additions & 0 deletions common/decisions/korea_decisions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
unite_korea = {
is_shown = {
NOT = {
exists = c:ROK
OR = {
has_global_variable = decision_united_korea
AND = {
owns_entire_state_region = STATE_SEOUL
owns_entire_state_region = STATE_YANGHO
owns_entire_state_region = STATE_BUSAN
owns_entire_state_region = STATE_PYONGYANG
owns_entire_state_region = STATE_SARIWON
}
}
c:NRK ?= {
owns_entire_state_region = STATE_SEOUL
owns_entire_state_region = STATE_YANGHO
owns_entire_state_region = STATE_BUSAN
owns_entire_state_region = STATE_PYONGYANG
owns_entire_state_region = STATE_SARIWON
}
}
OR = {
any_scope_state = {
region = sr:region_east_asia
}
OR = {
AND = {
country_or_subject_owns_entire_state_region = STATE_SEOUL
country_or_subject_owns_entire_state_region = STATE_YANGHO
country_or_subject_owns_entire_state_region = STATE_BUSAN
}
AND = {
country_or_subject_owns_entire_state_region = STATE_PYONGYANG
country_or_subject_owns_entire_state_region = STATE_SARIWON
}
}
}
}
possible = {
country_or_subject_owns_entire_state_region = STATE_SEOUL
country_or_subject_owns_entire_state_region = STATE_YANGHO
country_or_subject_owns_entire_state_region = STATE_BUSAN
country_or_subject_owns_entire_state_region = STATE_PYONGYANG
country_or_subject_owns_entire_state_region = STATE_SARIWON
}
when_taken = {
# A communist country wants to north korea to annex south korea
if = {
limit = {
c:NRK ?= {
is_direct_subject_of = ROOT
has_law = law_type:law_council_elective
}
c:STK ?= {
is_direct_subject_of = ROOT
}
has_law = law_type:law_council_elective
}
c:NRK ?= {
annex = c:STK
}
}
# A non-communist country wants south korea to annex north korea
else_if = {
limit = {
c:STK ?= {
is_direct_subject_of = ROOT
}
c:NRK ?= {
is_direct_subject_of = ROOT
}
NOT = {
has_law = law_type:law_council_elective
}
}
c:STK ?= {
annex = c:NRK
}
c:STK ?= {
change_tag = ROK
}
}
# a communist country wants north korea to have south korean lands
else_if = {
limit = {
NOT = {
exists = c:STK
}
c:NRK ?= {
is_direct_subject_of = ROOT
}
has_law = law_type:law_council_elective
}
s:STATE_SEOUL = {
random_scope_state = {
set_state_owner = c:NRK
}
}
s:STATE_YANGHO = {
random_scope_state = {
set_state_owner = c:NRK
}
}
s:STATE_BUSAN = {
random_scope_state = {
set_state_owner = c:NRK
}
}
# just in case
hidden_effect = {
s:STATE_PYONGYANG = {
random_scope_state = {
set_state_owner = c:NRK
}
}
s:STATE_SARIWON = {
random_scope_state = {
set_state_owner = c:NRK
}
}
}
}
# a non-communist country wants south korea to have north korean lands
else_if = {
limit = {
OR = {
NOT = {
exists = c:NRK
}
c:NRK ?= {
is_direct_subject_of = ROOT
}
}
c:STK ?= {
is_direct_subject_of = ROOT
}
NOT = {
has_law = law_type:law_council_elective
}
}
s:STATE_PYONGYANG = {
random_scope_state = {
set_state_owner = c:STK
}
}
s:STATE_SARIWON = {
random_scope_state = {
set_state_owner = c:STK
}
}
c:STK ?= {
change_tag = ROK
}
# just in case
hidden_effect = {
s:STATE_SEOUL = {
random_scope_state = {
set_state_owner = c:STK
}
}
s:STATE_YANGHO = {
random_scope_state = {
set_state_owner = c:STK
}
}
s:STATE_BUSAN = {
random_scope_state = {
set_state_owner = c:STK
}
}
}
}
hidden_effect = {
set_global_variable = decision_united_korea
}
}
ai_chance = {
base = 10
}
}
87 changes: 75 additions & 12 deletions common/dynamic_country_names/00_dynamic_country_names.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1776,27 +1776,24 @@ RUS = {
}
}

NKR = {
STK = {
dynamic_country_name = {
name = dyn_c_soviet_north_korea
name = dyn_c_us_korea
is_main_tag_only = yes
priority = 0
priority = 7
trigger = {
scope:actor = {
has_diplomatic_pact = {
who = c:RUS
who = c:USA
type = military_occupation
}
}
}
}
}

STK = {
dynamic_country_name = {
name = dyn_c_us_south_korea
is_main_tag_only = yes
priority = 0
priority = 5
trigger = {
scope:actor = {
has_diplomatic_pact = {
Expand All @@ -1806,6 +1803,19 @@ STK = {
}
}
}
dynamic_country_name = {
name = dyn_c_soviet_south_korea
is_main_tag_only = yes
priority = 5
trigger = {
scope:actor = {
has_diplomatic_pact = {
who = c:RUS
type = military_occupation
}
}
}
}
dynamic_country_name = {
name = dyn_c_south_korea_republic
adjective = dyn_c_south_korea_republic_adj
Expand All @@ -1822,6 +1832,21 @@ STK = {
}
}
}
dynamic_country_name = {
name = dyn_c_united_korea
is_main_tag_only = yes
priority = 6
trigger = {
exists = scope:actor
scope:actor = {
owns_entire_state_region = STATE_SEOUL
owns_entire_state_region = STATE_YANGHO
owns_entire_state_region = STATE_BUSAN
owns_entire_state_region = STATE_PYONGYANG
owns_entire_state_region = STATE_SARIWON
}
}
}
}

AZR = {
Expand Down Expand Up @@ -2700,12 +2725,50 @@ NRK = {
name = dyn_c_north_korea_dprk
adjective = dyn_c_north_korea_dprk_adj
is_main_tag_only = yes
priority = 1
priority = 10
trigger = {
OR = {
AND = {
exists = scope:actor
scope:actor = {
has_law = law_type:law_council_elective
is_subject = no
}
}
scope:actor = {
owns_entire_state_region = STATE_SEOUL
owns_entire_state_region = STATE_YANGHO
owns_entire_state_region = STATE_BUSAN
owns_entire_state_region = STATE_PYONGYANG
owns_entire_state_region = STATE_SARIWON
}
has_global_variable = decision_united_korea
}
}
}
dynamic_country_name = {
name = dyn_c_soviet_north_korea
is_main_tag_only = yes
priority = 5
trigger = {
exists = scope:actor
scope:actor = {
has_law = law_type:law_council_elective
is_subject = no
has_diplomatic_pact = {
who = c:RUS
type = military_occupation
}
}
}
}
dynamic_country_name = {
name = dyn_c_us_north_korea
is_main_tag_only = yes
priority = 5
trigger = {
scope:actor = {
has_diplomatic_pact = {
who = c:USA
type = military_occupation
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion common/flag_definitions/00_flag_definitions_CWP.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ NRK = { # Korea
priority = 1600
trigger = {
coa_def_russian_ensign_trigger = yes
coa_def_communist_flag_trigger = yes
coa_def_communist_flag_trigger = yes
}
}
}
Expand Down
Loading

0 comments on commit 0ccef20

Please sign in to comment.