debug_decisions = { debug_DANNES_PRC_decisions = { priority = -1 allowed = { tag = PRC } available = { } complete_effect = { every_other_country = { limit = { is_literally_china_not_prc = yes } ROOT = { annex_country = { target = PREV transfer_troops = yes } } } } } } ### # # ### ### # ### ### ## ### ### ## # # # ## # # # # # # # # # # # # # ## # # # ## ## # # # ### #### # # # # # ## # # # # # # # # # # # # # # # # # ### # # # ### ### # # # # # # ### ## # # #Category only allowed for is_potentially_communist_china #Category visible when PRC_infiltration focus is completed #INFILTRATE_STATE_AI_WILL_DO #INFILTRATE_JAP_STATE_AI_WILL_DO @INFILTRATION_INF_EQ_COST = -500 @DAYS_REMOVE_INFILTRATE_STATE = 30 PRC_infiltrate_nationalist_areas = { # 283 # 597 # 598 # 607 # 608 # 614 # 615 # 621 # 744 # 746 PRC_uprising = { icon = generic_ignite_civil_war visible = { has_government = communism } available = { PRC_uprising_is_available = yes } fire_only_once = yes days_remove = 60 war_with_on_remove = CHI cost = 25 ai_will_do = { base = 0 modifier = { #Block if still trying to kill JAP factor = 0 AND = { has_war_with = JAP #Allow JAP, faction member or puppet to control 5 states at most before triggering civil war count_triggers = { amount = 5 612 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 621 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 615 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 609 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 611 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 610 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 715 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 328 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 527 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 525 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 717 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 714 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 595 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 596 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 597 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 598 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 600 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 601 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 602 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 603 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 605 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 606 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 607 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 608 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 613 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 614 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 620 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 744 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 746 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 1038 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 1034 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 1035 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 1036 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 1037 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 1039 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } 1041 = { CONTROLLER = { is_JAP_or_ally_of_JAP = yes } } } } } #Block if we get fewer than 3 troops modifier = { factor = 0 NOT = { count_triggers = { amount = 3 283 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 597 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 598 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 607 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 608 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 614 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 615 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 621 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 746 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 744 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 1038 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } } } #The more troops, the bigger chance modifier = { add = 10 283 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } modifier = { add = 10 597 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } modifier = { add = 10 598 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } modifier = { add = 10 607 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } modifier = { add = 10 608 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } modifier = { add = 10 614 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } modifier = { add = 10 615 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } modifier = { add = 10 621 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } modifier = { add = 10 744 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } modifier = { add = 10 746 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } modifier = { add = 10 1038 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } #Sabotage is also nice modifier = { add = 3 283 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 597 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 598 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 607 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 608 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 614 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 615 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 621 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 744 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 746 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 1038 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } } complete_effect = { hidden_effect = { event_target:WTT_current_china_leader = { country_event = wtt_infiltration.10 } } } remove_effect = { if = { limit = { is_in_faction_with = event_target:WTT_current_china_leader } faction_leader = { remove_from_faction = ROOT } } declare_war_on = { target = event_target:WTT_current_china_leader type = annex_everything } 283 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 597 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 598 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 607 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 608 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 614 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 615 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 621 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 744 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 746 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 1038 = { if = { limit = { CONTROLLER = { tag = event_target:WTT_current_china_leader } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } } } PRC_infiltrate_gansu = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 283 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 283 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 283 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 283 ai_will_do = { base = 120 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 283 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 283 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 283 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 283 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 283 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_shandong = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 597 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 597 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 597 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 597 ai_will_do = { base = 80 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 597 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 597 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 597 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 597 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 597 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_jinan = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 1038 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 1038 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 1038 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 1038 ai_will_do = { base = 80 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 1038 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 1038 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 1038 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 1038 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 1038 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_jiangsu = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 598 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 598 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 598 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 598 ai_will_do = { base = 80 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 598 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 598 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 598 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 598 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 598 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_henan = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 607 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 607 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 607 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 607 ai_will_do = { base = 100 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 607 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 607 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 607 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 607 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 607 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_beijing = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 608 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 608 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 608 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 608 ai_will_do = { base = 80 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 608 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 608 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 608 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 608 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 608 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_hebei = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 614 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 614 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 614 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 614 ai_will_do = { base = 80 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 614 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 614 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 614 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 614 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 614 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_shanxi = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 615 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 615 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 615 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 615 ai_will_do = { base = 120 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 615 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 615 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 615 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 615 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 615 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_suiyuan = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 621 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 621 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 621 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 621 ai_will_do = { base = 80 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 621 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 621 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 621 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 621 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 621 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_xian = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 744 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 744 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 744 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 744 ai_will_do = { base = 120 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 744 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 744 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 744 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 744 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 744 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_ordos = { icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_infiltration has_completed_focus = PRC_sea_infiltration } 746 = { CONTROLLER = { tag = event_target:WTT_current_china_leader } } } available = { NOT = { has_war_with = event_target:WTT_current_china_leader } PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 746 = { PRC_can_increase_infiltration_in_state = yes } } highlight_states = { highlight_state_targets = { state = 746 } } modifier = { command_power_gain = -0.2 } #INFILTRATE_STATE_AI_WILL_DO 746 ai_will_do = { base = 120 modifier = { factor = 0 has_decision = PRC_uprising # don't throw away rifles if the uprising is going to start before you can finish this } modifier = { factor = 0 OR = { AND = { 746 = { has_state_flag = discovered_infiltration } PRC_all_nationalist_area_infiltration_discovered = no } } } modifier = { factor = 25 746 = { has_state_flag = { flag = PRC_infiltration_@PREV value > 0 } } } modifier = { factor = 50 #Really want to get to troop level 746 = { has_state_flag = { flag = PRC_infiltration_@PREV value = 2 } } } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 10 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 746 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 746 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } } ## # # ### ### #### ## ## ## # # # # ## # # # # # # # # # # ## # #### # ## # # # # #### ## #### # ## # # # # # # # # # # # # # # # # # # # # ### ## # # # # # # # #Category only allowed for is_potentially_communist_china #Category visible when PRC_infiltration focus is completed PRC_anti_japanese_expedition = { #609 #"east_hebei" #610 #"jehol" #611 #"south_chahar" #612 #"chahar" #714 #"heilungkiang" #715 #"liaoning" PRC_anti_japanese_uprising = { icon = revolt visible = { has_government = communism } available = { custom_trigger_tooltip = { tooltip = PRC_uprising_is_available any_country_with_original_tag_of = { target = { MAN MEN JAP } any_controlled_state = { PRC_is_infiltrated_by_ROOT = yes } } } } fire_only_once = yes days_remove = 30 modifier = { political_power_gain = -0.5 } cost = 10 ai_will_do = { base = 0 modifier = { add = 100 PRC_ROOT_war_with_controller_of_anti_japan_infiltrated_state = yes } #Block if not at least 2 troops and states are instant flipped modifier = { factor = 0 NOT = { has_war_with = JAP } NOT = { has_war_with = MEN } NOT = { has_war_with = MAN } NOT = { count_triggers = { amount = 2 609 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 610 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 611 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 612 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 714 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 715 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 761 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 1043 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } } } #The more troops, the more attractive the option to trigger modifier = { factor = 25 count_triggers = { amount = 2 609 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 610 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 611 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 612 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 714 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 715 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 761 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 1043 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } } modifier = { factor = 25 count_triggers = { amount = 3 609 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 610 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 611 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 612 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 714 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 715 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 761 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 1043 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } } modifier = { factor = 50 count_triggers = { amount = 4 609 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 610 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 611 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 612 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 714 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 715 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 761 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } 1043 = { PRC_infiltration_uprising_PREV_will_spawn_troops_in_state = yes } } } #Sabotage is also nice modifier = { add = 3 609 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 610 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 611 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 612 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 714 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 715 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 761 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } modifier = { add = 3 1043 = { PRC_infiltration_uprising_PREV_will_sabotage_state = yes } } } complete_effect = { hidden_effect = { MAN = { country_event = wtt_infiltration.10 } MEN = { country_event = wtt_infiltration.10 } JAP = { country_event = wtt_infiltration.10 } } } war_with_on_remove = JAP war_with_on_remove = MEN war_with_on_remove = MAN remove_effect = { declare_war_on = { target = JAP type = annex_everything } if = { limit = { MAN = { exists = yes } } declare_war_on = { target = MAN type = annex_everything } } if = { limit = { MEN = { exists = yes } } declare_war_on = { target = MEN type = annex_everything } } 609 = { #east_hebei if = { limit = { CONTROLLER = { OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 610 = { #jehol if = { limit = { CONTROLLER = { OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 611 = { #south_chahar if = { limit = { CONTROLLER = { OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 612 = { #chahar if = { limit = { CONTROLLER = { OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 714 = { #heilungkiang if = { limit = { CONTROLLER = { OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 715 = { #liaoning if = { limit = { CONTROLLER = { OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 761 = { #hulunbuir if = { limit = { CONTROLLER = { OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } 1043 = { #pailinmiao if = { limit = { CONTROLLER = { OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } PRC_is_infiltrated_by_PREV = yes } PRC_execute_infiltration_effects_for_PREV = yes } } } } PRC_infiltrate_east_hebei = { #609 #"east_hebei" icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_anti_japanese_expedition has_completed_focus = PRC_sea_anti_japanese_expedition } 609 = { CONTROLLER = { NOT = { has_war_with = ROOT } OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } } } highlight_states = { highlight_state_targets = { state = 609 } } available = { PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 609 = { PRC_can_increase_infiltration_in_state = yes } NOT = { has_war_with = JAP } NOT = { has_war_with = MEN } NOT = { has_war_with = MAN } } modifier = { command_power_gain = -0.2 } #INFILTRATE_JAP_STATE_AI_WILL_DO 609 ai_will_do = { base = 50 modifier = { factor = 0 609 = { has_state_flag = discovered_infiltration } PRC_all_anti_japan_infiltration_discovered = no } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 25 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 609 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 609 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_jehol = { #610 #"jehol" icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_anti_japanese_expedition has_completed_focus = PRC_sea_anti_japanese_expedition } 610 = { CONTROLLER = { NOT = { has_war_with = ROOT } OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } } } highlight_states = { highlight_state_targets = { state = 610 } } available = { PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 610 = { PRC_can_increase_infiltration_in_state = yes } NOT = { has_war_with = JAP } NOT = { has_war_with = MEN } NOT = { has_war_with = MAN } } modifier = { command_power_gain = -0.2 } #INFILTRATE_JAP_STATE_AI_WILL_DO 610 ai_will_do = { base = 50 modifier = { factor = 0 610 = { has_state_flag = discovered_infiltration } PRC_all_anti_japan_infiltration_discovered = no } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 25 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 610 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 610 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_south_chahar = { #611 #"south_chahar" icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_anti_japanese_expedition has_completed_focus = PRC_sea_anti_japanese_expedition } 611 = { CONTROLLER = { NOT = { has_war_with = ROOT } OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } } } highlight_states = { highlight_state_targets = { state = 611 } } available = { PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 611 = { PRC_can_increase_infiltration_in_state = yes } NOT = { has_war_with = JAP } NOT = { has_war_with = MEN } NOT = { has_war_with = MAN } } modifier = { command_power_gain = -0.2 } #INFILTRATE_JAP_STATE_AI_WILL_DO 611 ai_will_do = { base = 50 modifier = { factor = 0 611 = { has_state_flag = discovered_infiltration } PRC_all_anti_japan_infiltration_discovered = no } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 25 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 611 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 611 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_chahar = { #612 #"chahar" icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_anti_japanese_expedition has_completed_focus = PRC_sea_anti_japanese_expedition } 612 = { CONTROLLER = { NOT = { has_war_with = ROOT } OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } } } highlight_states = { highlight_state_targets = { state = 612 } } available = { PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 612 = { PRC_can_increase_infiltration_in_state = yes } NOT = { has_war_with = JAP } NOT = { has_war_with = MEN } NOT = { has_war_with = MAN } } modifier = { command_power_gain = -0.2 } #INFILTRATE_JAP_STATE_AI_WILL_DO 612 ai_will_do = { base = 50 modifier = { factor = 0 612 = { has_state_flag = discovered_infiltration } PRC_all_anti_japan_infiltration_discovered = no } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 25 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 612 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 612 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_heilungkiang = { #714 #"heilungkiang" icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_anti_japanese_expedition has_completed_focus = PRC_sea_anti_japanese_expedition } 714 = { CONTROLLER = { NOT = { has_war_with = ROOT } OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } } } highlight_states = { highlight_state_targets = { state = 714 } } available = { PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 714 = { PRC_can_increase_infiltration_in_state = yes } NOT = { has_war_with = JAP } NOT = { has_war_with = MEN } NOT = { has_war_with = MAN } } modifier = { command_power_gain = -0.2 } #INFILTRATE_JAP_STATE_AI_WILL_DO 714 ai_will_do = { base = 50 modifier = { factor = 0 714 = { has_state_flag = discovered_infiltration } PRC_all_anti_japan_infiltration_discovered = no } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 25 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 714 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 714 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_liaoning = { #715 #"liaoning" icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_anti_japanese_expedition has_completed_focus = PRC_sea_anti_japanese_expedition } 715 = { CONTROLLER = { NOT = { has_war_with = ROOT } OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } } } highlight_states = { highlight_state_targets = { state = 715 } } available = { PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 715 = { PRC_can_increase_infiltration_in_state = yes } NOT = { has_war_with = JAP } NOT = { has_war_with = MEN } NOT = { has_war_with = MAN } } modifier = { command_power_gain = -0.2 } #INFILTRATE_JAP_STATE_AI_WILL_DO 715 ai_will_do = { base = 50 modifier = { factor = 0 715 = { has_state_flag = discovered_infiltration } PRC_all_anti_japan_infiltration_discovered = no } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 25 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 715 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 715 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_hulunbuir = { #761 #"hulunbuir" icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_anti_japanese_expedition has_completed_focus = PRC_sea_anti_japanese_expedition } 761 = { CONTROLLER = { NOT = { has_war_with = ROOT } OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } } } highlight_states = { highlight_state_targets = { state = 761 } } available = { PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 761 = { PRC_can_increase_infiltration_in_state = yes } NOT = { has_war_with = JAP } NOT = { has_war_with = MEN } NOT = { has_war_with = MAN } } modifier = { command_power_gain = -0.2 } #INFILTRATE_JAP_STATE_AI_WILL_DO 761 ai_will_do = { base = 50 modifier = { factor = 0 761 = { has_state_flag = discovered_infiltration } PRC_all_anti_japan_infiltration_discovered = no } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 25 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 761 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 761 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } PRC_infiltrate_pailingmiao = { #1043 #"pailingmiao" icon = infiltrate_state visible = { has_government = communism OR = { has_completed_focus = PRC_anti_japanese_expedition has_completed_focus = PRC_sea_anti_japanese_expedition } 1043 = { CONTROLLER = { NOT = { has_war_with = ROOT } OR = { original_tag = MAN original_tag = MEN original_tag = JAP } } } } highlight_states = { highlight_state_targets = { state = 1043 } } available = { PRC_is_not_infiltrating_a_state = yes has_equipment = { infantry_equipment > 499 } 1043 = { PRC_can_increase_infiltration_in_state = yes } NOT = { has_war_with = JAP } NOT = { has_war_with = MEN } NOT = { has_war_with = MAN } } modifier = { command_power_gain = -0.2 } #INFILTRATE_JAP_STATE_AI_WILL_DO 1043 ai_will_do = { base = 50 modifier = { factor = 0 1043 = { has_state_flag = discovered_infiltration } PRC_all_anti_japan_infiltration_discovered = no } } days_remove = @DAYS_REMOVE_INFILTRATE_STATE days_re_enable = 0 cost = 25 complete_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = @INFILTRATION_INF_EQ_COST } 1043 = { if = { limit = { NOT = { has_state_flag = PRC_infiltration_@ROOT } } set_state_flag = { flag = PRC_infiltration_@ROOT value = 0 } } } } remove_effect = { 1043 = { PRC_infiltration_succesful_show_uprising_effect = yes modify_state_flag = { flag = PRC_infiltration_@ROOT value = 1 } } } } } operations = { PRC_launch_100_regiments_campaign = { icon = generic_prepare_civil_war visible = { has_completed_focus = PRC_100_regiments_campaign } cost = 0 fire_only_once = yes ai_will_do = { factor = 1 } days_remove = 180 modifier = { army_core_attack_factor = 0.25 } } } PRC_provoke_japan = { PRC_provoke_japan = { icon = generic_ignite_civil_war available = { not = { has_war_with = JAP } OR = { is_subject = no is_subject_of = event_target:WTT_current_china_leader } OR = { MAN = { OR = { is_subject_of = JAP has_cosmetic_tag = MAN_kwantung_army } } JAP = { owns_state = 525 owns_state = 527 } } } visible = { not = { has_war_with = JAP } OR = { MAN = { OR = { is_subject_of = JAP has_cosmetic_tag = MAN_kwantung_army } } JAP = { owns_state = 525 owns_state = 527 } } } cost = 10 ai_will_do = { factor = 1 modifier = { has_war_with = event_target:WTT_current_china_leader factor = 0 # let's just not make things worse for ourselves } modifier = { JAP = { has_war_with = event_target:WTT_current_china_leader } factor = 0 # mission accomplished } } fixed_random_seed = no days_re_enable = 90 complete_effect = { IF = { limit = { OR = { MAN = { is_subject_of = JAP } JAP = { owns_state = 525 owns_state = 527 } } } JAP = { random_list = { 25 = { country_event = wtt_prc.21 }# sabotage - military 25 = { country_event = wtt_prc.22 }# sabotage - civilian 25 = { country_event = wtt_prc.23 }# sabotage - infrastructure 25 = { country_event = wtt_prc.24 }# patrol ambushed } } } else_if = { limit = { MAN = { has_cosmetic_tag = MAN_kwantung_army } } MAN = { random_list = { 25 = { country_event = wtt_prc.21 }# sabotage - military 25 = { country_event = wtt_prc.22 }# sabotage - civilian 25 = { country_event = wtt_prc.23 }# sabotage - infrastructure 25 = { country_event = wtt_prc.24 }# patrol ambushed } } } } } } political_actions = { PRC_return_manchuria_communist = { available = { event_target:WTT_communist_china = { tag = ROOT } is_subject = no JAP = { has_government = communism NOT = { has_war_with = ROOT has_subject = ROOT } is_in_faction_with = ROOT OR = { controls_state = 610 controls_state = 716 controls_state = 745 controls_state = 328 controls_state = 717 controls_state = 714 controls_state = 715 controls_state = 761 controls_state = 611 controls_state = 612 controls_state = 609 } } MAN = { OR = { exists = no has_capitulated = yes } } } visible = { event_target:WTT_communist_china = { tag = ROOT } JAP = { has_government = communism NOT = { has_war_with = ROOT has_subject = ROOT } is_in_faction_with = ROOT OR = { controls_state = 610 controls_state = 716 controls_state = 745 controls_state = 328 controls_state = 717 controls_state = 714 controls_state = 715 controls_state = 761 controls_state = 611 controls_state = 612 controls_state = 609 } } } cost = 75 ai_will_do = { base = 1 } complete_effect = { JAP = { country_event = wtt_japan.40 } } remove_effect = { } } refuse_the_tribute = { icon = generic_political_actions allowed = { is_potentially_communist_china = yes } available = { } ai_will_do = { base = 0 modifier = { add = -50 #Has somewhat won against CHI and JAP NOT = { count_triggers = { amount = 7 595 = { is_controlled_by = ROOT } 596 = { is_controlled_by = ROOT } 597 = { is_controlled_by = ROOT } 598 = { is_controlled_by = ROOT } 600 = { is_controlled_by = ROOT } 601 = { is_controlled_by = ROOT } 602 = { is_controlled_by = ROOT } 603 = { is_controlled_by = ROOT } 605 = { is_controlled_by = ROOT } 606 = { is_controlled_by = ROOT } 607 = { is_controlled_by = ROOT } 608 = { is_controlled_by = ROOT } 613 = { is_controlled_by = ROOT } 614 = { is_controlled_by = ROOT } 620 = { is_controlled_by = ROOT } } } } modifier = { add = 25 has_idea = PRC_soviet_tribute_1 } modifier = { add = 50 has_idea = PRC_soviet_tribute_2 } modifier = { add = 75 has_idea = PRC_soviet_tribute_3 } modifier = { add = 100 has_idea = PRC_soviet_tribute_4 } modifier = { add = 125 has_idea = PRC_soviet_tribute_5 } modifier = { add = 150 has_idea = PRC_soviet_tribute_6 } modifier = { factor = 0 has_country_flag = PRC_soviet_tribute_commitment_flag } } visible = { has_country_flag = WTT_support_from_soviet has_soviet_tribute = yes } target_root_trigger = { has_country_flag = WTT_support_from_soviet } targets = { SOV } target_trigger = { FROM = { tag = SOV } } fire_only_once = yes complete_effect = { PRC_soviet_tribute_clear_all = yes clr_country_flag = WTT_support_from_soviet FROM = { country_event = { id = wtt_warlord_vs_prc.34 } effect_tooltip = { create_wargoal = { type = puppet_wargoal_focus target = ROOT } } } } } } ###### ######## ### ######## ######## ###### #### ###### #### ####### ## ## ###### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ###### ###### ## ## ## ## ###### ## ## ###### ## ## ## ## ## ## ###### ## ## ######### ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ###### ######## ## ## ######## ######## ###### #### ###### #### ####### ## ## ###### PRC_the_communist_power_struggle_balance_of_power_category = { #PRO MAO PRC_hold_speech_questioning_tradition = { priority = 100 ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 99 } modifier = { is_historical_focus_on = yes factor = 0.2 } } days_remove = 90 modifier = { stability_weekly = 0.0025 } cost = 50 remove_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.1 } } } PRC_emphasize_rural_support = { priority = 100 visible = { has_completed_focus = PRC_rally_the_peasants } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 99 } modifier = { is_historical_focus_on = yes factor = 0.2 } } cost = 25 fire_only_once = yes complete_effect = { add_stability = 0.025 custom_effect_tooltip = generic_skip_one_line_tt add_power_balance_value = { id = PRC_communist_power_struggle value = -0.1 } } } PRC_criticize_dogmatism = { priority = 100 visible = { OR = { has_completed_focus = PRC_rally_the_peasants has_completed_focus = PRC_the_unwilling_diarchy_focus } } cost = 25 ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 99 } modifier = { is_historical_focus_on = yes factor = 0.2 } } modifier = { stability_weekly = -0.0015 } days_remove = 180 remove_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.15 } } } PRC_send_wang_ming_to_soviet = { priority = 100 visible = { has_completed_focus = PRC_guide_central_committee NOT = { has_completed_focus = PRC_reclaim_the_grasp_of_power } } available = { NOT = { PRC_wang_ming = { has_character_flag = PRC_dismissed_advisor } } SOV = { exists = yes } } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 2 } } cost = 25 fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.1 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = { localization_key = remove_political_advisor_no_trait_tt CHARACTER = PRC_wang_ming } hidden_effect = { PRC_wang_ming = { set_character_flag = PRC_wang_ming_exiled } } } } PRC_convince_wang_jiaxiang = { priority = 100 visible = { has_completed_focus = PRC_guide_central_committee } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 0.2 } } cost = 25 fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.1 } custom_effect_tooltip = generic_skip_one_line_tt PRC_wang_jiaxiang = { add_trait = { slot = political_advisor trait = PRC_28_bolshevik_trait } remove_trait = { slot = political_advisor trait = PRC_avid_maoist } } } } PRC_utilizie_political_connections_mao = { priority = 100 visible = { OR = { has_completed_focus = PRC_guide_central_committee has_completed_focus = PRC_consolidate_politcal_power } } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 2 } } cost = 25 fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.1 } custom_effect_tooltip = generic_skip_one_line_tt PRC_luo_ruiqing = { gain_xp = 75 } } } PRC_utilizie_political_connections_bo_gu = { priority = 100 visible = { has_completed_focus = PRC_reclaim_the_grasp_of_power } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = no factor = 2 } } available = { PRC_bo_gu = { is_unit_leader = yes is_country_leader = no } } cost = 25 fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.05 } custom_effect_tooltip = generic_skip_one_line_tt PRC_bo_gu = { gain_xp = 50 } } } PRC_utilizie_political_connections_zhang_guotao = { priority = 100 visible = { has_completed_focus = PRC_the_unwilling_diarchy_focus NOT = { has_country_flag = PRC_zhang_guotao_left } } available = { PRC_zhang_guotao = { NOT = { has_character_flag = PRC_dismissed_advisor } } } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = no factor = 2 } } cost = 25 fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.05 } custom_effect_tooltip = generic_skip_one_line_tt PRC_zhang_guotao = { gain_xp = 50 } } } PRC_guotao_supreme = { priority = 100 visible = { AND = { has_completed_focus = PRC_consolidate_politcal_power has_completed_focus = PRC_zhang_guotao_ascends } } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = no factor = 3 } } available = { PRC_zhang_guotao = { NOT = { has_character_flag = PRC_dismissed_advisor } } } cost = 75 fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.15 } custom_effect_tooltip = generic_skip_one_line_tt PRC_zhang_guotao = { gain_xp = 50 } } } PRC_utilizie_political_connections_otto_braun = { priority = 100 visible = { has_completed_focus = PRC_reclaim_the_grasp_of_power NOT = { has_decision = PRC_utilizie_political_connections_mao } } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = no factor = 2 } } available = { PRC_otto_braun = { is_unit_leader = yes } has_completed_focus = PRC_invite_otto_braun } cost = 25 fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.05 } custom_effect_tooltip = generic_skip_one_line_tt PRC_bo_gu = { gain_xp = 50 } } } PRC_mao_lectures = { priority = 100 visible = { OR = { has_completed_focus = PRC_guide_central_committee has_completed_focus = PRC_the_unwilling_diarchy_focus } NOT = { has_completed_focus = PRC_zhang_guotao_ascends } } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 2 } } cost = 25 days_remove = 31 modifier = { stability_weekly = 0.01 } fire_only_once = yes remove_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.05 } } cancel_trigger = { OR = { has_completed_focus = PRC_reclaim_the_grasp_of_power has_completed_focus = PRC_zhang_guotao_ascends } } } PRC_bo_gu_review = { priority = 100 visible = { has_completed_focus = PRC_guide_central_committee } cost = 25 days_remove = 21 fire_only_once = yes modifier = { war_support_weekly_factor = 0.015 } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = no factor = 2 } } remove_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.05 } custom_effect_tooltip = generic_skip_one_line_tt army_experience = 15 } cancel_trigger = { has_completed_focus = PRC_leadership_of_mao } } PRC_purge_bo_gu = { priority = 100 visible = { has_completed_focus = PRC_leadership_of_mao } available = { } cost = 25 fire_only_once = yes ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 0.2 } } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.1 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = { localization_key = remove_political_advisor_no_trait_tt CHARACTER = PRC_bo_gu } hidden_effect = { PRC_bo_gu = { set_character_flag = PRC_dismissed_advisor } } } } PRC_purge_zhang_guotao = { priority = 100 visible = { OR = { has_completed_focus = PRC_leadership_of_mao has_completed_focus = PRC_mao_zedong_ascends } has_country_flag = PRC_zhang_guatao_arrived ## Don't show if he hasn't arrived yet, probable edge case NOT = { has_country_flag = PRC_zhang_guotao_left ## Don't show if left for KMT } PRC_zhang_guotao = { ## Just for edge case NOT = { has_character_flag = PRC_dismissed_advisor } } } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 0.2 } } cost = 25 fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.1 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = { localization_key = remove_political_advisor_no_trait_tt CHARACTER = PRC_zhang_guotao } hidden_effect = { PRC_zhang_guotao = { set_character_flag = PRC_dismissed_advisor } } } } PRC_purge_wang_ming = { priority = 100 visible = { has_completed_focus = PRC_leadership_of_mao } available = { } cost = 25 fire_only_once = yes ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 0.2 } } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.1 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = { localization_key = remove_political_advisor_no_trait_tt CHARACTER = PRC_wang_ming } hidden_effect = { PRC_wang_ming = { set_character_flag = PRC_dismissed_advisor } } } } PRC_purge_mao_zedong = { priority = 100 visible = { has_completed_focus = PRC_zhang_guotao_ascends } available = { } cost = 25 fire_only_once = yes ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 0 } } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.2 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = { localization_key = remove_political_advisor_no_trait_tt CHARACTER = PRC_mao_zedong } hidden_effect = { PRC_mao_zedong = { set_character_flag = PRC_dismissed_advisor } } } } PRC_purge_wang_shiwei = { priority = 100 visible = { OR = { has_completed_focus = PRC_leadership_of_mao has_completed_focus = PRC_consolidate_politcal_power } NOT = { has_completed_focus = PRC_yanan_rectification_movement } } available = { } cost = 25 fire_only_once = yes ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 0.2 } } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.1 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = { localization_key = remove_political_advisor_no_trait_tt CHARACTER = PRC_wang_shiwei } hidden_effect = { PRC_wang_shiwei = { set_character_flag = PRC_dismissed_advisor } } } } PRC_purge_chen_changhao = { priority = 100 visible = { OR = { has_completed_focus = PRC_leadership_of_mao has_completed_focus = PRC_consolidate_politcal_power } } available = { } cost = 25 ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 0.2 } } fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.1 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = { localization_key = remove_political_advisor_no_trait_tt CHARACTER = PRC_chen_changhao } hidden_effect = { PRC_chen_changhao = { set_character_flag = PRC_dismissed_advisor } } } } PRC_purge_liu_shaoqi = { priority = 100 visible = { OR = { has_completed_focus = PRC_reclaim_the_grasp_of_power has_completed_focus = PRC_the_unwilling_diarchy_focus } } available = { } cost = 25 fire_only_once = yes ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 0.2 } } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.1 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = { localization_key = remove_political_advisor_no_trait_tt CHARACTER = PRC_liu_shaoqi } hidden_effect = { PRC_liu_shaoqi = { set_character_flag = PRC_dismissed_advisor } } } } PRC_purge_deng_xiaoping = { priority = 100 visible = { OR = { has_completed_focus = PRC_reclaim_the_grasp_of_power has_completed_focus = PRC_consolidate_politcal_power } } available = { } cost = 25 fire_only_once = yes ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 0 } } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.15 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = { localization_key = remove_political_advisor_no_trait_tt CHARACTER = PRC_deng_xiaoping } hidden_effect = { PRC_deng_xiaoping = { set_character_flag = PRC_dismissed_advisor } } } } PRC_purge_ren_bishi = { priority = 100 visible = { OR = { has_completed_focus = PRC_reclaim_the_grasp_of_power has_completed_focus = PRC_the_unwilling_diarchy_focus } } available = { } cost = 25 fire_only_once = yes ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = yes factor = 0.2 } } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.1 } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = { localization_key = remove_political_advisor_no_trait_tt CHARACTER = PRC_ren_bishi } hidden_effect = { PRC_ren_bishi = { set_character_flag = PRC_dismissed_advisor } } } } PRC_unwilling_diarchy_bop_decision = { priority = 100 available = { has_completed_focus = PRC_the_unwilling_diarchy_focus } visible = { NOT = { has_completed_focus = PRC_burn_the_paper_tigers } } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } } fire_only_once = yes days_remove = 120 modifier = { political_power_gain = 0.1 } cost = 50 remove_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.2 } } cancel_trigger = { has_completed_focus = PRC_mao_zedong_ascends } } PRC_criticize_leadership_decision = { priority = 100 visible = { has_completed_focus = PRC_the_unwilling_diarchy_focus } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } } #fire_only_once = yes days_remove = 180 modifier = { stability_weekly = -0.005 political_power_factor = -0.15 } cost = 50 remove_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.2 } } cancel_trigger = { has_completed_focus = PRC_mao_zedong_ascends } } #PRO 28 BOLSHEVIKS PRC_reinforce_teachings_from_USSR = { priority = 100 visible = { NOT = { has_completed_focus = PRC_the_unwilling_diarchy_focus } } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = no factor = 5 } } days_remove = 60 cost = 75 modifier = { research_speed_factor = 0.025 } remove_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.15 } } cancel_trigger = { has_completed_focus = PRC_the_unwilling_diarchy_focus } } PRC_emphasize_urban_support = { priority = 100 visible = { has_completed_focus = PRC_rally_the_28_bolsheviks } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = no factor = 2 } } cost = 25 fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.1 } } } PRC_emphasize_intellectual_support = { priority = 100 visible = { has_completed_focus = PRC_rally_the_28_bolsheviks } ai_will_do = { base = 2 modifier = { factor = 2.5 has_political_power > 199 } modifier = { is_historical_focus_on = no factor = 4 } } days_remove = 60 cost = 50 modifier = { research_speed_factor = 0.05 } fire_only_once = yes complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.1 } } } #DEBUG DEBUG_reset_bop = { priority = 120 visible = { is_debug = yes } complete_effect = { set_power_balance = { id = PRC_communist_power_struggle left_side = PRC_bop_left_side right_side = PRC_bop_right_side set_value = 0 } } } DEBUG_max_mao = { priority = 10 visible = { is_debug = yes } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -1 } } } DEBUG_medium_mao = { priority = 10 visible = { is_debug = yes } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.5 } } } DEBUG_kinda_mao = { priority = 10 visible = { is_debug = yes } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.25 } } } DEBUG_small_mao = { priority = 10 visible = { is_debug = yes } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = -0.1 } } } DEBUG_max_28 = { priority = 10 visible = { is_debug = yes } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 1 } } } DEBUG_medium_28 = { priority = 10 visible = { is_debug = yes } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.5 } } } DEBUG_kinda_28 = { priority = 10 visible = { is_debug = yes } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.25 } } } DEBUG_small_28 = { priority = 10 visible = { is_debug = yes } complete_effect = { add_power_balance_value = { id = PRC_communist_power_struggle value = 0.10 } } } } # # ## ## ## # # ### ### ## # # ### ## ### # # ## ## # # ### ### ### # # ### ### ### ## # # # # # # # ## ## # # # # # # ## ## # # # ## # # # # # # # # # # # ## # # # # # # # ## # # # # # # # # ### ### # # # # # # # ## # ## # # # # # ### ### ## # ## # # ## ### # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ## ## ## # # # # # ## # # ### ## ### # # ## ## ## # # # # ### # # ### ### # # PRC_guerilla_warfare_sea_cat = { PRC_establish_guerilla_cells_start = { priority = 90 icon = { key = GFX_decision_generic_guerilla_base_0 trigger = { ROOT = { original_tag = PRC OR = { has_completed_focus = PRC_empower_the_guerillas has_completed_focus = PRC_the_battle_behind_the_front_lines } } FROM = { NOT = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } } } icon = { key = GFX_decision_generic_guerilla_base_1 trigger = { ROOT = { original_tag = PRC OR = { has_completed_focus = PRC_empower_the_guerillas has_completed_focus = PRC_the_battle_behind_the_front_lines } } FROM = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } } icon = { key = GFX_decision_generic_guerilla_base trigger = { FROM = { NOT = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } } } target_root_trigger = { has_civil_war = no } available = { NOT = { has_country_flag = PRC_currently_establishing_guerillas_in_foreign_state } if = { limit = { original_tag = PRC } NOT = { has_completed_focus = PRC_the_peoples_republic }#This is here to inform to the player } else_if = { limit = { original_tag = CHI } NOT = { has_completed_focus = CHI_victory_over_the_invaders }#This is here to inform to the player } FROM = { compliance < 50 NOT = { has_state_flag = PRC_guerilla_cells_etsablishing_flag } IF = { limit = { controller = { OR = { original_tag = JAP is_subject_of = JAP } } } NOT = { has_dynamic_modifier = { modifier = JAP_intense_anti_guerilla_operation } } } } } state_target = yes target_array = ROOT.core_states on_map_mode = map_only highlight_states = { highlight_state_targets = { state = FROM } } visible = { if = { limit = { original_tag = PRC } OR = { has_completed_focus = PRC_on_guerilla_warfare has_completed_focus = PRC_the_fight_of_a_people has_completed_focus = PRC_promote_guerilla_warfare } NOT = { has_completed_focus = PRC_empower_the_guerillas has_completed_focus = PRC_the_battle_behind_the_front_lines } NOT = { has_completed_focus = PRC_the_peoples_republic } } else_if = { limit = { original_tag = CHI } has_completed_focus = CHI_guerrilla_warfare NOT = { has_completed_focus = CHI_train_for_asymmetry has_completed_focus = CHI_victory_over_the_invaders } } FROM = { NOT = { is_core_of = controller } controller = { #this might cause issues with the cancel but for optimization reasons will leave it here and hope it won't has_war_with = ROOT } compliance < 70 ## Hide if compliance is at least 70, we show the sabotage then } } target_trigger = { FROM = { NOT = { has_dynamic_modifier = PRC_guerilla_cells_active_1 has_dynamic_modifier = PRC_guerilla_cells_active_2 } } } ai_hint_pp_cost = 50 custom_cost_trigger = { command_power > 49 has_political_power > 49 } custom_cost_text = decision_cost_CP_50_pp_50 fire_only_once = no days_remove = 30 ai_will_do = { base = 5 modifier = { factor = 10 FROM = { any_neighbor_state = { is_controlled_by = ROOT } } } modifier = { factor = 2 command_power > 75 has_political_power > 75 } modifier = { factor = 2 command_power > 100 has_political_power > 100 } modifier = { factor = 2 FROM = { supply_node > 0 } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { political_advisor } } } modifier = { factor = 0.75 any_state = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes distance_to = { target = FROM value > 1700 } } } modifier = { factor = 0.5 any_state = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes distance_to = { target = FROM value > 2000 } } } modifier = { factor = 1.5 is_historical_focus_on = yes FROM = { #Historical regions PRC controlled/established guerilla cells in OR = { any_state_in = { strategic_region = 245 } any_state_in = { strategic_region = 143 } any_state_in = { strategic_region = 247 } any_state_in = { strategic_region = 249 } is_core_of = MAN is_core_of = MEN } } } #Prioritize your advisors first! modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 3 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { theorist } } } } cancel_trigger = { FROM = { OR = { compliance > 59 is_core_of = controller has_dynamic_modifier = PRC_guerilla_cells_active_1 has_dynamic_modifier = PRC_guerilla_cells_active_2 controller = { #this might cause issues with the cancel but for optimization reasons will leave it here and hope it won't NOT = { has_war_with = ROOT } } } } } cancel_effect = { clr_country_flag = PRC_currently_establishing_guerillas_in_foreign_state FROM = { clr_state_flag = PRC_guerilla_cells_etsablishing_flag } #Refund half of the resources spent: add_command_power = 25 add_political_power = 25 } complete_effect = { set_country_flag = PRC_currently_establishing_guerillas_in_foreign_state FROM = { set_state_flag = PRC_guerilla_cells_etsablishing_flag } hidden_effect = { add_political_power = -50 add_command_power = -50 } } remove_effect = { clr_country_flag = PRC_currently_establishing_guerillas_in_foreign_state FROM = { clr_state_flag = PRC_guerilla_cells_etsablishing_flag if = { limit = { ROOT = { OR = { has_completed_focus = PRC_empower_the_guerillas has_completed_focus = PRC_the_battle_behind_the_front_lines } } has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = PRC_establish_guerilla_cells_tt add_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } hidden_effect = { #This is simply to get better tooltips remove_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } else = { add_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } add_to_variable = { global.guerilla_counter = 1 } if = { limit = { has_variable = ROOT.guerilla_counter } add_to_variable = { ROOT.guerilla_counter = 1 } } else = { set_variable = { ROOT.guerilla_counter = 1 } } if = { limit = { is_in_faction = yes has_completed_focus = PRC_propaganda_efforts } custom_effect_tooltip = generic_skip_one_line_tt add_faction_influence_ratio = var:PRC_gain_faction_inluence_number } } } #The Upgrade versionen is needed because we can't modify the Decision Cost because there's no way to change the cost for Command Power PRC_establish_guerilla_cells_upgrade = { priority = 90 icon = { key = GFX_decision_generic_guerilla_base_0 trigger = { ROOT = { original_tag = PRC OR = { has_completed_focus = PRC_empower_the_guerillas has_completed_focus = PRC_the_battle_behind_the_front_lines } } FROM = { NOT = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } } } icon = { key = GFX_decision_generic_guerilla_base_1 trigger = { ROOT = { original_tag = PRC OR = { has_completed_focus = PRC_empower_the_guerillas has_completed_focus = PRC_the_battle_behind_the_front_lines } } FROM = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } } icon = { key = GFX_decision_generic_guerilla_base trigger = { FROM = { NOT = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } } } target_root_trigger = { has_civil_war = no } available = { NOT = { has_country_flag = PRC_currently_establishing_guerillas_in_foreign_state } if = { limit = { original_tag = PRC } NOT = { has_completed_focus = PRC_the_peoples_republic }#This is here to inform to the player } else_if = { limit = { original_tag = CHI } NOT = { has_completed_focus = CHI_victory_over_the_invaders }#This is here to inform to the player } FROM = { compliance < 50 NOT = { has_state_flag = PRC_guerilla_cells_etsablishing_flag } IF = { limit = { controller = { OR = { original_tag = JAP is_subject_of = JAP } } } NOT = { has_dynamic_modifier = { modifier = JAP_intense_anti_guerilla_operation } } } } } state_target = yes target_array = ROOT.core_states on_map_mode = map_only highlight_states = { highlight_state_targets = { state = FROM } } visible = { if = { limit = { original_tag = PRC } OR = { has_completed_focus = PRC_empower_the_guerillas has_completed_focus = PRC_the_battle_behind_the_front_lines } NOT = { has_completed_focus = PRC_the_peoples_republic } } else_if = { limit = { original_tag = CHI } has_completed_focus = CHI_train_for_asymmetry NOT = { has_completed_focus = CHI_victory_over_the_invaders } } FROM = { NOT = { is_core_of = controller } controller = { #this might cause issues with the cancel but for optimization reasons will leave it here and hope it won't has_war_with = ROOT } compliance < 70 ## Hide if compliance is 70 or more, we show the sabotage then } } target_trigger = { FROM = { OR = { AND = { ROOT = { original_tag = PRC } NOT = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } } } AND = { ROOT = { original_tag = CHI } NOT = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } } } } ai_hint_pp_cost = 25 custom_cost_trigger = { command_power > 24 has_political_power > 24 } custom_cost_text = decision_cost_CP_25_pp_25 fire_only_once = no days_remove = 30 ai_will_do = { base = 5 modifier = { factor = 10 FROM = { any_neighbor_state = { is_controlled_by = ROOT } } } modifier = { factor = 2 command_power > 50 has_political_power > 50 } modifier = { factor = 2 command_power > 75 has_political_power > 75 } modifier = { factor = 2 command_power > 100 has_political_power > 100 } modifier = { factor = 2 FROM = { supply_node > 0 } } modifier = { factor = 0.75 any_state = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes distance_to = { target = FROM value > 1700 } } } modifier = { factor = 0.5 any_state = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes distance_to = { target = FROM value > 2000 } } } modifier = { factor = 1.5 is_historical_focus_on = yes FROM = { #Historical regions PRC controlled/established guerilla cells in OR = { any_state_in = { strategic_region = 245 } any_state_in = { strategic_region = 143 } any_state_in = { strategic_region = 247 } any_state_in = { strategic_region = 249 } is_core_of = MAN is_core_of = MEN } } } #Prioritize your advisors first! modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 3 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { theorist } } } } cancel_trigger = { FROM = { OR = { compliance > 59 is_core_of = controller has_dynamic_modifier = PRC_guerilla_cells_active_2 controller = { #this might cause issues with the cancel but for optimization reasons will leave it here and hope it won't NOT = { has_war_with = ROOT } } } } } cancel_effect = { clr_country_flag = PRC_currently_establishing_guerillas_in_foreign_state FROM = { clr_state_flag = PRC_guerilla_cells_etsablishing_flag } add_command_power = 15 add_political_power = 15 } complete_effect = { set_country_flag = PRC_currently_establishing_guerillas_in_foreign_state FROM = { set_state_flag = PRC_guerilla_cells_etsablishing_flag } hidden_effect = { add_political_power = -25 add_command_power = -25 } } remove_effect = { clr_country_flag = PRC_currently_establishing_guerillas_in_foreign_state FROM = { clr_state_flag = PRC_guerilla_cells_etsablishing_flag if = { limit = { ROOT = { OR = { has_completed_focus = PRC_the_battle_behind_the_front_lines has_completed_focus = PRC_empower_the_guerillas } } has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } custom_effect_tooltip = generic_skip_one_line_tt custom_effect_tooltip = PRC_establish_guerilla_cells_tt add_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } hidden_effect = { #This is simply to get better tooltips remove_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } else = { add_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } } add_to_variable = { global.guerilla_counter = 1 } if = { limit = { has_variable = ROOT.guerilla_counter } add_to_variable = { ROOT.guerilla_counter = 1 } } else = { set_variable = { ROOT.guerilla_counter = 1 } } if = { limit = { is_in_faction = yes has_completed_focus = PRC_propaganda_efforts } custom_effect_tooltip = generic_skip_one_line_tt add_faction_influence_ratio = var:PRC_gain_faction_inluence_number } } } PRC_establish_sabotage_operations = { priority = 90 icon = GFX_decisions_generic_sabotage allowed = { original_tag = PRC } visible = { OR = { has_completed_focus = PRC_establish_friendly_bases has_completed_focus = PRC_launch_sabotage_campaigns #check_variable = { #the Guotao/Mao path needs to have less of this to accomodate for more aggressive bonuses # PRC_amount_of_anti_japanese_bases < 2 #} } NOT = { has_completed_focus = PRC_the_peoples_republic } FROM = { OR = { AND = { NOT = { is_core_of = controller } controller = { has_war_with = ROOT } OR = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } compliance > 69 # Show if compliance is at least 70 } } AND = { is_core_of = controller controller = { has_war_with = ROOT } } } NOT = { has_dynamic_modifier = { modifier = PRC_anti_japanese_base } } } } available = { NOT = { has_country_flag = PRC_currently_establishing_anti_japanese_base_state has_completed_focus = PRC_the_peoples_republic #This is here to inform to the player } IF = { limit = { controller = { OR = { original_tag = JAP is_subject_of = JAP } } } NOT = { has_dynamic_modifier = { modifier = JAP_intense_anti_guerilla_operation } } } } state_target = yes target_array = ROOT.core_states on_map_mode = map_only target_trigger = { OR = { FROM = { NOT = { is_core_of = controller } has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } } FROM = { is_core_of = ROOT } } } ai_hint_pp_cost = 50 custom_cost_trigger = { command_power > 49 has_political_power > 49 } custom_cost_text = decision_cost_CP_50_pp_50 fire_only_once = yes days_remove = 30 ai_will_do = { base = 15 modifier = { factor = 10 FROM = { any_neighbor_state = { is_controlled_by = ROOT } } } modifier = { factor = 2 command_power > 75 has_political_power > 75 } modifier = { factor = 2 command_power > 100 has_political_power > 100 } modifier = { factor = 2 FROM = { supply_node > 0 } } modifier = { factor = 0.75 any_state = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes distance_to = { target = FROM value > 1700 } } } modifier = { factor = 0.5 any_state = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes distance_to = { target = FROM value > 2000 } } } modifier = { factor = 1.5 FROM = { is_core_of = MAN is_core_of = MEN } } #Prioritize your advisors first! modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 3 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { theorist } } } } cancel_trigger = { OR = { has_civil_war = yes FROM = { OR = { state_is_fully_controlled_by_ROOT_subject_or_faction_member = yes controller = { NOT = { has_war_with = ROOT } } hidden_trigger = { has_dynamic_modifier = { modifier = PRC_anti_japanese_base } } } } } } cancel_effect = { clr_country_flag = PRC_currently_establishing_anti_japanese_base_state } complete_effect = { set_country_flag = PRC_currently_establishing_anti_japanese_base_state hidden_effect = { add_political_power = -50 add_command_power = -50 } } remove_effect = { clr_country_flag = PRC_currently_establishing_anti_japanese_base_state #add_to_variable = { PRC_amount_of_anti_japanese_bases = 1 } FROM = { add_dynamic_modifier = { modifier = PRC_anti_japanese_base } } add_to_variable = { global.guerilla_counter = 1 } if = { limit = { has_variable = ROOT.guerilla_counter } add_to_variable = { ROOT.guerilla_counter = 1 } } else = { set_variable = { ROOT.guerilla_counter = 1 } } if = { limit = { is_in_faction = yes has_completed_focus = PRC_propaganda_efforts } custom_effect_tooltip = generic_skip_one_line_tt add_faction_influence_ratio = PRC_gain_faction_inluence_number } } } } PRC_guerilla_suppression_sea_cat = { PRC_root_out_guerilla_fighters = { priority = 90 icon = GFX_decision_oppression available = { NOT = { has_country_flag = PRC_currently_rooting_out_guerilla_sympathizers } } state_target = yes target_array = PRC.core_states on_map_mode = map_only target_root_trigger = { IF = { limit = { original_tag = JAP } NOT = { has_completed_focus = JAP_intensify_anti_guerilla_operations } } } target_trigger = { FROM = { OR = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } has_dynamic_modifier = { modifier = PRC_anti_japanese_base } } } } visible = { FROM = { state_is_fully_controlled_by_ROOT_or_subject = yes } IF = { limit = { original_tag = JAP } NOT = { has_completed_focus = JAP_intensify_anti_guerilla_operations } } } ai_hint_pp_cost = 50 custom_cost_trigger = { command_power > 49 has_political_power > 49 } custom_cost_text = decision_cost_CP_50_pp_50 fire_only_once = no days_remove = 30 ai_will_do = { base = 2 modifier = { factor = 1.5 command_power > 99 } modifier = { factor = 1.5 has_political_power > 99 } #Prioritize your advisors first! modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 3 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { theorist } } } } cancel_trigger = { FROM = { state_is_fully_controlled_by_ROOT_or_subject = no } } cancel_effect = { clr_country_flag = PRC_currently_establishing_anti_japanese_base_state } complete_effect = { set_country_flag = PRC_currently_establishing_anti_japanese_base_state hidden_effect = { add_political_power = -50 add_command_power = -50 } } remove_effect = { clr_country_flag = PRC_currently_establishing_anti_japanese_base_state FROM = { if = { limit = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } remove_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } else_if = { limit = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } NOT = { has_dynamic_modifier = { modifier = PRC_anti_japanese_base } } } custom_effect_tooltip = PRC_root_out_guerilla_fighters_tt add_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } hidden_effect = { #This is simply to get better tooltips remove_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } } } else_if = { limit = { has_dynamic_modifier = { modifier = PRC_anti_japanese_base } } remove_dynamic_modifier = { modifier = PRC_anti_japanese_base } } } } } # Japanese Upgraded Version PRC_root_out_guerilla_fighters_upgraded = { priority = 90 icon = GFX_decision_oppression visible = { FROM = { state_is_fully_controlled_by_ROOT_or_subject = yes } } available = { NOT = { has_country_flag = PRC_currently_rooting_out_guerilla_sympathizers } } state_target = yes target_array = PRC.core_states on_map_mode = map_only target_root_trigger = { original_tag = JAP has_completed_focus = JAP_intensify_anti_guerilla_operations } target_trigger = { FROM = { OR = { OR = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } has_dynamic_modifier = { modifier = PRC_anti_japanese_base } } } } } ai_hint_pp_cost = 25 custom_cost_trigger = { command_power > 24 has_political_power > 24 } custom_cost_text = decision_cost_CP_25_pp_25 fire_only_once = no days_remove = 30 ai_will_do = { base = 2 modifier = { factor = 2 command_power > 49 } modifier = { factor = 2 has_political_power > 99 } #Prioritize your advisors first! modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 3 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { theorist } } } } cancel_trigger = { FROM = { state_is_fully_controlled_by_ROOT_or_subject = no } } cancel_effect = { clr_country_flag = PRC_currently_establishing_anti_japanese_base_state } complete_effect = { set_country_flag = PRC_currently_establishing_anti_japanese_base_state hidden_effect = { add_political_power = -25 add_command_power = -25 } } remove_effect = { clr_country_flag = PRC_currently_establishing_anti_japanese_base_state FROM = { if = { limit = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } remove_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } } else_if = { limit = { has_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } NOT = { has_dynamic_modifier = { modifier = PRC_anti_japanese_base } } } custom_effect_tooltip = PRC_root_out_guerilla_fighters_tt add_dynamic_modifier = { modifier = PRC_guerilla_cells_active_1 } hidden_effect = { #This is simply to get better tooltips remove_dynamic_modifier = { modifier = PRC_guerilla_cells_active_2 } } } else_if = { limit = { has_dynamic_modifier = { modifier = PRC_anti_japanese_base } } remove_dynamic_modifier = { modifier = PRC_anti_japanese_base } } custom_effect_tooltip = generic_skip_one_line_tt add_dynamic_modifier = { modifier = JAP_intense_anti_guerilla_operation days = 120 } } } } } PRC_infiltration_sea_cat = { PRC_infiltrate_state = { icon = { key = GFX_decisions_generic_infiltration_0 trigger = { FROM = { NOT = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC } has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC } has_dynamic_modifier = { modifier = PRC_infiltrated_state_3 scope = PRC } } } } } icon = { key = GFX_decisions_generic_infiltration_1 trigger = { FROM = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC } } } } icon = { key = GFX_decisions_generic_infiltration_2 trigger = { FROM = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC } } } } priority = 90 allowed = { original_tag = PRC } visible = { NOT = { has_completed_focus = PRC_the_peoples_republic } OR = { has_completed_focus = PRC_playing_both_sides has_completed_focus = PRC_secure_the_peoples_support has_completed_focus = PRC_gain_the_peoples_trust } FROM = { controller = { is_literally_china = yes NOT = { original_tag = ROOT has_war_with = ROOT is_subject_of = ROOT } } } } #cancel_if_not_visible = yes available = { NOT = { #has_country_flag = PRC_currently_infiltrating_state has_completed_focus = PRC_the_peoples_republic #This is here to inform to the player } if = { limit = { CHI = { has_completed_focus = CHI_a_chapter_in_every_village } } FROM = { NOT = { has_dynamic_modifier = { modifier = CHI_infiltrated_state_1 scope = CHI } has_dynamic_modifier = { modifier = CHI_infiltrated_state_2 scope = CHI } has_dynamic_modifier = { modifier = CHI_infiltrated_state_3 scope = CHI } } } } } state_target = yes target_array = ROOT.core_states highlight_states = { highlight_state_targets = { state = FROM } } on_map_mode = map_and_decisions_view target_trigger = { FROM = { impassable = no NOT = { has_state_flag = CHI_permanently_protected_from_infiltration } OR = { AND = { ROOT = { #Unlock Level 3 Infiltration at different times for the deifferent Branches OR = { has_completed_focus = PRC_supreme_infiltration has_completed_focus = PRC_secure_the_peoples_support has_completed_focus = PRC_secure_the_lands } } NOT = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_3 scope = PRC #These modifiers should only apply to PRC } } } AND = { ROOT = { has_completed_focus = PRC_playing_both_sides } NOT = { ROOT = { has_completed_focus = PRC_supreme_infiltration } } NOT = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC #These modifiers should only apply to PRC } } } AND = { ROOT = { has_completed_focus = PRC_gain_the_peoples_trust } NOT = { ROOT = { has_completed_focus = PRC_secure_the_lands } } NOT = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC #These modifiers should only apply to PRC } } } } any_neighbor_state = { OR = { is_controlled_by_ROOT_or_subject = yes has_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC } has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC } has_dynamic_modifier = { modifier = PRC_infiltrated_state_3 scope = PRC } } } } } cost = PRC_infiltration_cost #fire_only_once = yes days_remove = 30 ai_will_do = { base = 5 modifier = { factor = 5 FROM = { any_neighbor_state = { is_controlled_by = ROOT } } } modifier = { factor = 2 FROM = { any_neighbor_state = { OR = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC #These modifiers should only apply to PRC } has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC #These modifiers should only apply to PRC } has_dynamic_modifier = { modifier = PRC_infiltrated_state_3 scope = PRC #These modifiers should only apply to PRC } } } } } modifier = { factor = 2 FROM = { controller = { NOT = { is_in_faction_with = ROOT } } } } modifier = { factor = 1.5 has_political_power > 150 } modifier = { factor = 1.5 has_political_power > 200 } #Prioritize your advisors first! modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 3 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { theorist } } } } cancel_trigger = { FROM = { OR = { state_is_fully_controlled_by_ROOT_or_subject = yes controller = { has_war_with = ROOT } } } } cancel_effect = { #clr_country_flag = PRC_currently_infiltrating_state } complete_effect = { #set_country_flag = PRC_currently_infiltrating_state } remove_effect = { #clr_country_flag = PRC_currently_infiltrating_state FROM = { if = { #Add a cost variable to take the counter decisions for Warlords limit = { controller = { NOT = { has_variable = CHI_counter_infiltration_cost } } } controller = { set_variable = { CHI_counter_infiltration_cost = 50 } } } IF = { #this has to be done this way, updating the varibles on the modifiers will upddate for ALL states, not just the one state limit = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC #These modifiers should only apply to PRC } } add_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC #These modifiers should only apply to PRC } custom_effect_tooltip = generic_skip_one_line_tt remove_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC #These modifiers should only apply to PRC } } ELSE_IF = { limit = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC } } add_dynamic_modifier = { modifier = PRC_infiltrated_state_3 scope = PRC #These modifiers should only apply to PRC } custom_effect_tooltip = generic_skip_one_line_tt remove_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC #These modifiers should only apply to PRC } } ELSE = { add_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC #These modifiers should only apply to PRC } } } if = { limit = { has_completed_focus = PRC_propaganda_efforts has_faction_template = faction_template_chinese_united_front } custom_effect_tooltip = generic_skip_one_line_tt add_faction_influence_ratio = var:PRC_gain_faction_inluence_number } if = { limit = { has_completed_focus = PRC_rural_recruitment FROM = { OR = { has_state_category = pastoral has_state_category = rural has_state_category = town } } } add_manpower = PRC_rural_recruitment_manpower } } } } CHI_counter_infiltration_sea_cat = { CHI_counter_infiltration_measures = { icon = { key = GFX_decisions_generic_infiltration_2 trigger = { FROM = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC } } } } icon = { key = GFX_decisions_generic_infiltration_1 trigger = { FROM = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC } } } } priority = 90 allowed = { NOT = { original_tag = PRC } } visible = { } available = { #NOT = { # has_country_flag = CHI_counter_infiltration_measures_flag #} } state_target = yes target_array = PRC.core_states highlight_states = { highlight_state_targets = { state = FROM } } on_map_mode = map_and_decisions_view target_trigger = { FROM = { OR = { AND = { ROOT = { tag = event_target:WTT_current_china_leader } controller = { any_allied_country = { is_faction_leader = yes is_literally_china = yes } } } is_controlled_by = ROOT } OR = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC } has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC } } } } cost = ROOT.CHI_counter_infiltration_cost #fire_only_once = yes days_remove = 45 ai_will_do = { base = 5 modifier = { factor = 1.5 OR = { is_faction_leader = yes original_tag = CHI } } modifier = { factor = 2 FROM = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC } } } modifier = { factor = 2 has_war = no } modifier = { factor = 1.5 has_political_power > 150 } modifier = { factor = 1.5 has_political_power > 200 } modifier = { factor = 0.5 has_political_power < 100 } } cancel_trigger = { FROM = { controller = { has_war_with = ROOT } } } cancel_effect = { #clr_country_flag = CHI_counter_infiltration_measures_flag } complete_effect = { #set_country_flag = CHI_counter_infiltration_measures_flag } remove_effect = { #clr_country_flag = CHI_counter_infiltration_measures_flag FROM = { IF = { limit = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC } } remove_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC } } IF = { limit = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC } } remove_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC } add_dynamic_modifier = { modifier = PRC_infiltrated_state_1 scope = PRC } } } if = { limit = { has_faction_template = faction_template_chinese_united_front } custom_effect_tooltip = generic_skip_one_line_tt add_faction_influence_ratio = 0.0015 #0.25% } } } CHI_counter_infiltration_measures_level_3 = { icon = GFX_decisions_generic_infiltration_3 priority = 90 allowed = { NOT = { original_tag = PRC } } visible = { } available = { #NOT = { # has_country_flag = CHI_counter_infiltration_measures_flag #} } state_target = yes target_array = PRC.core_states highlight_states = { highlight_state_targets = { state = FROM } } on_map_mode = map_and_decisions_view target_trigger = { FROM = { OR = { AND = { ROOT = { tag = event_target:WTT_current_china_leader } controller = { any_allied_country = { is_faction_leader = yes is_literally_china = yes } } } is_controlled_by = ROOT } has_dynamic_modifier = { modifier = PRC_infiltrated_state_3 scope = PRC } } } cost = 100 #PRC has infiltrated the state and cemented the people's support - it's hard and costly to root them out #fire_only_once = yes days_remove = 60 #PRC has infiltrated the state and cemented the people's support - it's hard and costly to root them out ai_will_do = { base = 5 modifier = { factor = 1.5 OR = { is_faction_leader = yes original_tag = CHI } } modifier = { factor = 1.5 FROM = { has_dynamic_modifier = { modifier = PRC_infiltrated_state_3 scope = PRC } } } modifier = { factor = 2 has_war = no } modifier = { factor = 0.5 has_political_power < 150 } modifier = { factor = 1.5 has_political_power > 200 } #Prioritize your advisors first! modifier = { factor = 0.5 amount_taken_ideas = { amount < 2 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 3 slots = { political_advisor } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { high_command } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { theorist } } } modifier = { factor = 0.5 amount_taken_ideas = { amount < 1 slots = { army_chief } } } } cancel_trigger = { if = { limit = { FROM = { NOT = { owner = { original_tag = ROOT } } } } FROM = { controller = { has_war_with = ROOT } } } else = { NOT = { FROM = { is_controlled_by = ROOT } } } } cancel_effect = { #clr_country_flag = CHI_counter_infiltration_measures_flag } complete_effect = { #set_country_flag = CHI_counter_infiltration_measures_flag } remove_effect = { #clr_country_flag = CHI_counter_infiltration_measures_flag FROM = { remove_dynamic_modifier = { modifier = PRC_infiltrated_state_3 scope = PRC } add_dynamic_modifier = { modifier = PRC_infiltrated_state_2 scope = PRC } } } } } PRC_economic_planning_cat = { PRC_initialize_five_year_plan_mission = { icon = GFX_decision_generic_factory is_good = no days_mission_timeout = PRC_five_year_plan_length fire_only_once = yes activation = { has_completed_focus = PRC_initialize_five_year_plan } available = { AND = { num_of_civilian_factories > PRC_initialize_five_year_plan_goal_civ_factories num_of_military_factories > PRC_initialize_five_year_plan_goal_mil_factories } } complete_effect = { add_ideas = PRC_five_year_plan_completed ## If completed then get slight perfament bonus } timeout_effect = { #When reach 0, fail - if fail get a Missed Five Year Plan Goal NS for 2 years with -10% in a bunch of stuff. add_timed_idea = { idea = PRC_five_year_plan_failed days = 730 } } } PRC_initialize_shorter_market_plans_mission = { icon = GFX_decision_generic_industry is_good = no fire_only_once = yes days_mission_timeout = PRC_shorter_market_plan_length activation = { has_completed_focus = PRC_establish_shorter_market_plans } available = { AND = { num_of_civilian_factories > PRC_initialize_shorter_market_plans_goal_civ_factories num_of_military_factories > PRC_initialize_shorter_market_plans_goal_mil_factories } } complete_effect = { add_ideas = PRC_shorter_market_plan_completed ## If completed then get slight perfament bonus } timeout_effect = { #When reach 0 add_timed_idea = { idea = PRC_shorter_market_plan_failed days = 365 } } } } PRC_appeal_for_foreign_aid_cat = { PRC_appeal_for_foreign_aid_t34 = { icon = GFX_decision_SOV_secure_the_administration priority = 100 visible = { always = yes } ai_will_do = { base = 10 } available = { SOV = { exists = yes surrender_progress < 0.2 is_subject = no has_government = communism } } cost = 125 fire_only_once = yes complete_effect = { SOV = { country_event = { id = SEA_PRC_request_aid.4 hours = 4 random_hours = 3 } } custom_effect_tooltip = if_they_accept_tt custom_effect_tooltip = PRC_appeal_for_foreign_aid_tt } } PRC_appeal_for_foreign_aid_bt7 = { icon = GFX_decision_SOV_secure_the_administration priority = 100 visible = { always = yes } ai_will_do = { base = 10 } available = { SOV = { exists = yes surrender_progress < 0.2 is_subject = no has_government = communism } } cost = 100 fire_only_once = yes complete_effect = { SOV = { country_event = { id = SEA_PRC_request_aid.31 hours = 4 random_hours = 3 } } custom_effect_tooltip = if_they_accept_tt custom_effect_tooltip = PRC_appeal_for_foreign_aid_bt7_tt } } } PRC_border_wars_cat = { PRC_the_westward_expedition_decision = { icon = GFX_decision_generic_fortification ai_will_do = { base = 10 modifier = { ## Do it asap on historical, timing works out is_historical_focus_on = yes factor = 5 } } visible = { has_completed_focus = PRC_the_westward_expedition NOT = { controls_state = 1045 } } available = { has_border_war = no has_war = no has_civil_war = no is_subject = no NOT = { any_allied_country = { controls_state = 1045 } } 1045 = { controller = { is_literally_china = yes } } } highlight_states = { highlight_state_targets = { state = 622 state = 1045 } } fire_only_once = yes ai_hint_pp_cost = 15 custom_cost_trigger = { command_power > 14 has_political_power > 14 } custom_cost_text = decision_cost_CP_15_pp_15 complete_effect = { hidden_effect = { add_command_power = -15 add_political_power = -15 } activate_mission = PRC_assaulting_guyuan custom_effect_tooltip = generic_skip_one_line_tt start_border_war = { change_state_after_war = no #overrides the transfer of state at the end of war combat_width = 180 #combat width for border war minimum_duration_in_days = 40 #minimum duration for combat attacker = { on_win = SEA_PRC_border_war_events.1 on_lose = SEA_PRC_border_war_events.2 on_cancel = SEA_PRC_border_war_events.2 state = 622 # state to start border war num_provinces = 2 #number of provinces we want border war to be #on_win = #effect to call if wins #on_lose = #effect to call if loses leader_score = { # Optional score for selecting a leader base = 1 modifier = { skill > 2 factor = 5 } modifier = { skill > 3 factor = 10 } } dig_in_factor = 0 #dig in modifier factor (default value: 1.0) terrain_factor = 0 #terrain modifier factor(default value: 1.0) } defender = { state = 1045 # state to start border war num_provinces = 2 #number of provinces we want border war to be # on_win = #effect to call if wins on_lose = SEA_PRC_border_war_events.1 on_win = SEA_PRC_border_war_events.2 on_cancel = SEA_PRC_border_war_events.2 } } PRC_this_might_anger_china = yes PRC_current_china_leader_gets_small_antagonize_strategy = yes } } #Western Expedition PRC_assaulting_guyuan = { icon = border_war allowed = { always = no } available = { hidden_trigger = { always = no } } highlight_states = { highlight_state_targets = { state = 622 state = 1045 } } days_mission_timeout = 275 cancel_trigger = { 1045 = { OR = { is_fully_controlled_by = ROOT controller = { has_war_with = ROOT } } } } cancel_effect = { effect_tooltip = { country_event = { id = SEA_PRC_border_war_events.1 } transfer_state = 1045 } } timeout_effect = { #Fails cancel_border_war = { attacker = 622 defender = 1045 } } } PRC_the_eastward_expedition_decision = { icon = GFX_decision_generic_fortification ai_will_do = { base = 10 modifier = { is_historical_focus_on = yes factor = 0 } } visible = { has_completed_focus = PRC_the_eastward_expedition NOT = { controls_state = 615 } } available = { controls_state = 1046 has_border_war = no has_war = no has_civil_war = no is_subject = no NOT = { any_allied_country = { controls_state = 615 } } 615 = { controller = { is_literally_china = yes } } } highlight_states = { highlight_state_targets = { state = 1046 state = 615 } } fire_only_once = yes ai_hint_pp_cost = 15 custom_cost_trigger = { command_power > 14 has_political_power > 14 } custom_cost_text = decision_cost_CP_15_pp_15 complete_effect = { hidden_effect = { add_command_power = -15 add_political_power = -15 } activate_mission = PRC_assaulting_shanxi custom_effect_tooltip = generic_skip_one_line_tt start_border_war = { change_state_after_war = no #overrides the transfer of state at the end of war combat_width = 180 #combat width for border war minimum_duration_in_days = 40 #minimum duration for combat attacker = { on_win = SEA_PRC_border_war_events.3 on_lose = SEA_PRC_border_war_events.4 state = 1046 # state to start border war num_provinces = 2 #number of provinces we want border war to be #on_win = #effect to call if wins #on_lose = #effect to call if loses leader_score = { # Optional score for selecting a leader base = 1 modifier = { skill > 2 factor = 5 } modifier = { skill > 3 factor = 10 } } dig_in_factor = 0 #dig in modifier factor (default value: 1.0) terrain_factor = 0 #terrain modifier factor(default value: 1.0) } defender = { state = 615 # state to start border war num_provinces = 2 #number of provinces we want border war to be # on_win = #effect to call if wins on_lose = SEA_PRC_border_war_events.3 on_win = SEA_PRC_border_war_events.4 # on_cancel = #effect to call if cancels } } PRC_this_might_anger_china = yes PRC_current_china_leader_gets_small_antagonize_strategy = yes } } #Eastern Expedition PRC_assaulting_shanxi = { icon = border_war allowed = { always = no } available = { hidden_trigger = { always = no } } highlight_states = { highlight_state_targets = { state = 1046 state = 615 } } days_mission_timeout = 275 cancel_trigger = { 615 = { OR = { is_fully_controlled_by = ROOT controller = { has_war_with = ROOT } } } } cancel_effect = { effect_tooltip = { country_event = { id = SEA_PRC_border_war_events.1 } transfer_state = 615 } } timeout_effect = { #Fails cancel_border_war = { attacker = 1046 defender = 615 } } } PRC_usurp_control_over_yanan_decision = { icon = GFX_decision_generic_fortification ai_will_do = { base = 10 } visible = { has_country_flag = PRC_usurp_control_over_yanan_flag NOT = { controls_state = 1032 } } available = { controls_state = 622 has_border_war = no has_war = no has_civil_war = no is_subject = no NOT = { any_allied_country = { controls_state = 1032 } } 1032 = { controller = { is_literally_china = yes NOT = { tag = ROOT } } } } highlight_states = { highlight_state_targets = { state = 622 state = 1032 } } fire_only_once = yes ai_hint_pp_cost = 15 custom_cost_trigger = { command_power > 14 has_political_power > 14 } custom_cost_text = decision_cost_CP_15_pp_15 complete_effect = { hidden_effect = { add_command_power = -15 add_political_power = -15 } activate_mission = PRC_assaulting_yanan custom_effect_tooltip = generic_skip_one_line_tt start_border_war = { change_state_after_war = no #overrides the transfer of state at the end of war combat_width = 180 #combat width for border war minimum_duration_in_days = 40 #minimum duration for combat attacker = { on_win = SEA_PRC_border_war_events.5 on_lose = SEA_PRC_border_war_events.6 state = 622 # state to start border war num_provinces = 2 #number of provinces we want border war to be #on_win = #effect to call if wins #on_lose = #effect to call if loses leader_score = { # Optional score for selecting a leader base = 1 modifier = { skill > 2 factor = 5 } modifier = { skill > 3 factor = 10 } } dig_in_factor = 0 #dig in modifier factor (default value: 1.0) terrain_factor = 0 #terrain modifier factor(default value: 1.0) } defender = { state = 1032 # state to start border war num_provinces = 2 #number of provinces we want border war to be # on_win = #effect to call if wins on_lose = SEA_PRC_border_war_events.5 on_win = SEA_PRC_border_war_events.6 # on_cancel = #effect to call if cancels } } clr_country_flag = PRC_usurp_control_over_yanan_flag PRC_this_might_anger_china = yes PRC_current_china_leader_gets_small_antagonize_strategy = yes } } #Usurp Control over Yan'an PRC_assaulting_yanan = { icon = border_war allowed = { always = no } available = { hidden_trigger = { always = no } } highlight_states = { highlight_state_targets = { state = 622 state = 1032 } } days_mission_timeout = 180 cancel_trigger = { 1032 = { OR = { is_fully_controlled_by = ROOT controller = { has_war_with = ROOT } } } } cancel_effect = { effect_tooltip = { country_event = { id = SEA_PRC_border_war_events.1 } transfer_state = 1032 } } timeout_effect = { #Fails cancel_border_war = { attacker = 622 defender = 1032 } } } } PRC_war_of_resistance_cat = { PRC_the_peoples_doubt = { #MISSION icon = GFX_decision_generic_ignite_civil_war allowed = { always = no } available = { hidden_trigger = { always = no } } is_good = no days_mission_timeout = 90 cancel_trigger = { custom_trigger_tooltip = { tooltip = PRC_the_peoples_doubt_tt any_other_country = { is_literally_china = no has_country_flag = PRC_invading_china_flag OR = { has_war_with = ROOT AND = { NOT = { has_war_with = CHI } NOT = { has_war_with = PRC } NOT = { has_war_with = GXC } NOT = { has_war_with = YUN } NOT = { has_war_with = SHX } NOT = { has_war_with = XSM } NOT = { has_war_with = SIK } NOT = { has_war_with = GDC } NOT = { has_war_with = SND } NOT = { has_war_with = SIC } NOT = { has_war_with = NXM } NOT = { has_war_with = GSM } NOT = { has_war_with = XIC } NOT = { has_war_with = KHM } NOT = { has_war_with = KUM } NOT = { has_war_with = HBC } } } } } } cancel_effect = { add_political_power = 25 add_stability = 0.05 add_war_support = 0.05 } timeout_effect = { country_event = { id = SEA_PRC_misc_events.2 hours = 1 } effect_tooltip = { add_ideas = PRC_passive_revolutionaries_idea } } } } PRC_28_bolshevik_faction_cat = { PRC_28_bolshevik_faction_decision_enlai_diplomatic_feelers = { # Aid to random faction member not faction leader icon = GFX_decision_generic_political_discourse cost = PRC_28_bolshevik_decisions_cost #fire_only_once = yes days_remove = 30 cancel_trigger = { FROM = { OR = { exists = no NOT = { is_in_faction_with = ROOT } is_subject = yes } } } available = { NOT = { has_country_flag = PRC_zhou_enlai_on_diplomatic_mission } } target_array = ROOT.faction_members target_trigger = { FROM = { is_literally_china_not_prc = yes is_faction_leader = no is_in_faction_with = ROOT NOT = { has_country_flag = PRC_bolshevik_faction_influence_level_2 } } } complete_effect = { set_country_flag = PRC_zhou_enlai_on_diplomatic_mission } modifier = { political_power_gain = -0.05 } cancel_effect = { clr_country_flag = PRC_zhou_enlai_on_diplomatic_mission } remove_effect = { add_faction_influence_ratio = 0.0025 hidden_effect = { FROM = { set_country_flag = PRC_bolshevik_faction_influence_level_2 } } clr_country_flag = PRC_zhou_enlai_on_diplomatic_mission } } PRC_28_bolshevik_faction_decision_ask_for_support = { # Level 2 convince non-faction-leader to support you icon = GFX_decision_generic_speech cost = PRC_28_bolshevik_decisions_cost #fire_only_once = yes available = { FROM = { is_subject = no } } days_remove = 30 cancel_trigger = { FROM = { OR = { exists = no NOT = { is_in_faction_with = ROOT } is_subject = yes } } } target_array = ROOT.faction_members target_trigger = { FROM = { is_literally_china_not_prc = yes is_faction_leader = no is_in_faction_with = ROOT has_country_flag = PRC_bolshevik_faction_influence_level_2 NOT = { has_country_flag = PRC_bolshevik_faction_influence_level_3 } } } remove_effect = { add_faction_influence_ratio = 0.0075 if = { limit = { has_dynamic_modifier = { modifier = PRC_28_bolshevik_faction_dynamic_modifier } } custom_effect_tooltip = PRC_28_bolshevik_faction_dynamic_modifier_tt add_to_variable = { PRC_28_bolshevik_faction_dynamic_modifier_faction_influence_contribution_factor = 0.01 tooltip = faction_influence_contribution_factor_tt } add_to_variable = { PRC_28_bolshevik_faction_dynamic_modifier_faction_influence_war_score_factor = 0.01 tooltip = faction_influence_war_score_factor_tt } } else = { add_dynamic_modifier = { modifier = PRC_28_bolshevik_faction_dynamic_modifier } } hidden_effect = { FROM = { set_country_flag = PRC_bolshevik_faction_influence_level_3 } } } } PRC_28_bolshevik_faction_decision_backstab = { # Backstab faction leader, reduce cost of infiltration, get minus faction influence icon = GFX_decisions_generic_infiltration cancel_trigger = { FROM = { OR = { exists = no NOT = { is_in_faction_with = ROOT } NOT = { is_faction_leader = yes } } } } target_root_trigger = { NOT = { has_country_flag = PRC_backstabbed_leader_once } NOT = { original_tag = PRC } } target_trigger = { FROM = { is_faction_leader = yes is_in_faction_with = ROOT NOT = { original_tag = PRC } } } cost = PRC_28_bolshevik_decisions_cost fire_only_once = yes days_remove = 15 remove_effect = { add_faction_influence_ratio = -0.1 ## Reduce faction influence custom_effect_tooltip = PRC_28_bolshevik_faction_decision_backstab_tt add_to_variable = { PRC_infiltration_cost = -10 } set_country_flag = PRC_backstabbed_leader_once } } PRC_28_bolshevik_faction_decision_legitimize_faction_leader = { # Legitimize FL, gain small bonus to give them faction influence icon = GFX_decision_eng_propaganda_campaigns target_trigger = { FROM = { is_in_faction_with = ROOT is_faction_leader = yes } } available = { has_war_with = JAP } cost = PRC_28_bolshevik_decisions_cost fire_only_once = yes days_remove = 60 targeted_modifier = { tag = JAP attack_bonus_against = 0.075 } complete_effect = { FROM = { add_faction_influence_ratio = 0.075 } } remove_effect = { } } } PRC_rural_surveyer_decision_cat = { PRC_rural_surveys = { #icon = cost = 30 available = { has_completed_focus = PRC_rural_survey custom_trigger_tooltip = { tooltip = PRC_rural_surveyer_tt } } visible = { check_variable = { PRC_amount_of_times_rural_survey < 5 } has_completed_focus = PRC_rural_survey } days_remove = 30 complete_effect = { if = { limit = { NOT = { has_variable = PRC_amount_of_times_rural_survey } } set_temp_variable = { var = PRC_amount_of_times_rural_survey value = 0 } } hidden_effect = { random_owned_controlled_state = { set_state_flag = PRC_rural_survey_state_to_add } } } remove_effect = { if = { limit = { NOT = { has_decision = PRC_rural_surveys } } effect_tooltip = { random_owned_controlled_state = { add_extra_state_shared_building_slots = 1 } } } add_to_variable = { PRC_amount_of_times_rural_survey = 1 } random_owned_controlled_state = { limit = { has_state_flag = PRC_rural_survey_state_to_add } add_extra_state_shared_building_slots = 1 clr_state_flag = PRC_rural_survey_state_to_add } } } } PRC_integration_decision_cat = { PRC_integration_decision_tibet = { priority = 1000 cost = 50 days_remove = 60 state_target = yes target_array = TIB.core_states target_trigger = { FROM = { NOT = { is_core_of = PRC } } } visible = { has_completed_focus = PRC_reclaim_tibet ## Has completed focus only, always visible otherwise } available = { controls_state = FROM has_completed_focus = PRC_reclaim_tibet FROM = { NOT = { has_state_flag = PRC_is_integrating_a_state } } } complete_effect = { FROM = { set_state_flag = PRC_is_integrating_a_state } ## Set flag } cancel_trigger = { NOT = { controls_state = FROM } ## No longer controls state } cancel_effect = { FROM = { clr_state_flag = PRC_is_integrating_a_state } ## Remove is doing integrating decision flag } modifier = { stability_weekly = -0.01 } remove_effect = { ## Remove is doing integrating decision flag FROM = { clr_state_flag = PRC_is_integrating_a_state add_core_of = PRC } } } PRC_integration_decision_soviet_states = { priority = 1000 cost = 50 days_remove = 60 state_target = yes target_array = PRC.PRC_northern_target_states_array target_trigger = { FROM = { NOT = { is_core_of = PRC } } } visible = { has_completed_focus = PRC_dare_to_win ## Has completed focus only, always visible otherwise } available = { controls_state = FROM has_completed_focus = PRC_dare_to_win FROM = { NOT = { has_state_flag = PRC_is_integrating_a_state } } } complete_effect = { FROM = { set_state_flag = PRC_is_integrating_a_state } ## Set flag } cancel_trigger = { NOT = { controls_state = FROM } ## No longer controls state } cancel_effect = { FROM = { clr_state_flag = PRC_is_integrating_a_state } ## Remove is doing integrating decision flag } modifier = { stability_weekly = -0.01 } remove_effect = { ## Remove is doing integrating decision flag FROM = { clr_state_flag = PRC_is_integrating_a_state add_core_of = PRC } } } } political_actions = { PRC_second_thoughts_factions = { ## For edge case if PRC forms a different faction from CHI and both at war with JAP, can form a CUF priority = 1000 fire_only_once = yes cost = 25 allowed = { original_tag = PRC } visible = { PRC = { is_in_faction = yes is_faction_leader = yes has_war_with_major = yes NOT = { ## Not available for Guomao has_completed_focus = PRC_the_unwilling_diarchy_focus } } NOT = { PRC = { is_in_faction_with = event_target:WTT_current_china_leader } } event_target:WTT_current_china_leader = { is_in_faction = yes has_war_with_major = yes is_faction_leader = yes } } complete_effect = { event_target:WTT_current_china_leader = { country_event = { id = SEA_PRC_faction_events.90 hours = 1 } } custom_effect_tooltip = if_they_accept_tt effect_tooltip = { if = { ## If at war, then white peace limit = { PRC = { has_war_with = event_target:WTT_current_china_leader } } every_faction_member = { display_individual_scopes = yes # Optional - default = no white_peace = { tag = event_target:WTT_current_china_leader } } } PRC = { every_faction_member = { display_individual_scopes = yes # Optional - default = no leave_faction = yes event_target:WTT_current_china_leader = { add_to_faction = PREV } } } } } } PRC_remove_yulin_garrison = { icon = GFX_decision_generic_prepare_civil_war priority = 1000 days_remove = 90 fire_only_once = yes allowed = { original_tag = PRC } visible = { 1046 = { has_dynamic_modifier = { modifier = PRC_the_yulin_garrison } } } available = { controls_state = 1046 1046 = { has_dynamic_modifier = { modifier = PRC_the_yulin_garrison } } } cancel_trigger = { NOT = { controls_state = 1046 } } ai_hint_pp_cost = 50 custom_cost_trigger = { command_power > 49 has_political_power > 49 } custom_cost_text = decision_cost_CP_50_pp_50 complete_effect = { hidden_effect = { add_command_power = -50 add_political_power = -50 } } modifier = { command_power_gain = -0.1 experience_gain_army = -0.1 army_defence_factor = -0.025 army_attack_factor = -0.025 } remove_effect = { 1046 = { remove_dynamic_modifier = { modifier = PRC_the_yulin_garrison } } } cancel_effect = { } } }