zcy_madurayskoe_vosstanie = {
    zcy_madurayskoe_vosstanie = {
		icon = generic_nationalism	
        activation = {
		    always = no
		}			
		is_good = no
		priority = 100
		days_mission_timeout = 70
		fire_only_once = yes	   
		timeout_effect = {
            country_event = ilam.10
        }
    }
    zcy_raskryt_separov = {
	    icon = generic_decision
		visible = {
			always = yes
		}
		fire_only_once = yes
		days_remove = 15
		cost = 50
		complete_effect = {
		    if = {
			    limit = {
				    NOT = {
					    has_variable = zcy_defuse
					}
				}
				set_variable = { zcy_defuse = 0 }
			}
		}
		remove_effect = {
		    add_to_variable = {
                var = zcy_defuse
                value = 1
                tooltip = zcy_defuse_1_tt
            }
		}
		ai_will_do = {
			base = 10000
		}
    }
	zcy_likvidatsiya_lits = {
	    icon = generic_decision
		available = {
		    has_manpower > 50
		}
		visible = {
			always = yes
		}
		fire_only_once = yes
		days_remove = 15
		cost = 50
		complete_effect = {
		    if = {
			    limit = {
				    NOT = {
					    has_variable = zcy_defuse
					}
				}
				set_variable = { zcy_defuse = 0 }
			}
		    add_manpower = -50
		}
		remove_effect = {
		    add_stability = -0.05
			add_manpower = -12
		    add_to_variable = {
                var = zcy_defuse
                value = 1
                tooltip = zcy_defuse_1_tt
            }
		}
		ai_will_do = {
			base = 10000
		}
    }
	zcy_peremanit_ludei = {
	    icon = generic_decision
		visible = {
			always = yes
		}
		fire_only_once = yes
		days_remove = 15
		cost = 150
		complete_effect = {
		    if = {
			    limit = {
				    NOT = {
					    has_variable = zcy_defuse
					}
				}
				set_variable = { zcy_defuse = 0 }
			}
		}
		remove_effect = {
		    add_to_variable = {
                var = zcy_defuse
                value = 1
                tooltip = zcy_defuse_1_tt
            }
		}
		ai_will_do = {
			base = 10000
		}
    }
	zcy_operatsiya = {
	    icon = generic_decision
		visible = {
			check_variable = { zcy_defuse = 3 }
		}
		available = {
		    has_manpower > 500
		}
		fire_only_once = yes
		days_remove = 20
		custom_cost_trigger = {
		    command_power > 24
            has_equipment = {
			    infantry_equipment > 499
			}
        }
        custom_cost_text = decision_cost_cp_25_ie_500
		complete_effect = {
		    add_manpower = -500
		}
		remove_effect = {
		    add_stability = -0.05
			add_war_support = -0.05
			add_manpower = 487
			add_equipment_to_stockpile = {
                type = infantry_equipment
                amount = 487
            }
            remove_mission = zcy_madurayskoe_vosstanie
			set_country_flag = zcy_civil_war_over
		}
		ai_will_do = {
			base = 10000
		}
    }
}
zcy_pokorenie_indostana = {
    zuf_core_indostan_state = {
		icon = generic_decision
        state_target = yes
        target_array = controlled_states 
        target_trigger = {
            FROM = {
                CONTROLLER = {
                    tag = ROOT
                }
                NOT = {
				    is_core_of = ROOT
                }				
            }       
        }         
        days_remove = 50
		available = {
            FROM = {
			    is_fully_controlled_by = ROOT
			}
        }
		visible = {
            FROM = {
			    OR = {
				    is_core_of = XCK
					is_core_of = XJI
			        is_core_of = XMY
					is_core_of = XVI
					is_core_of = ZDT
				    is_core_of = ZVJ  
				    is_core_of = ZGV  
					is_core_of = ZQQ
					is_core_of = ZAG
					is_core_of = ZID
					is_core_of = ZND
					is_core_of = ZWB
					is_core_of = ZNB
					is_core_of = ZTB
					is_core_of = ZZK
					is_core_of = ZZP
					is_core_of = ZKD
					is_core_of = ZGU
				}
                NOT = {
				    is_core_of = ROOT
				}
            }       	
		}       
        fire_only_once = no		
		cost = 25
        on_map_mode = map_only
        remove_effect = {
		    FROM = {
				add_core_of = ROOT			
			}
		}
	}
	zcy_zahvat_indostana = {
		icon = generic_decision
		targets = {
		    XCK XJI XMY ZDT ZVJ ZGV ZQQ ZAG 
		}
		visible = {
		    OR = {
			    original_tag = XMD
				AND = {
				    original_tag = ZCY
					OR = {
					    has_country_leader = {
				            character = XMY_sellapan_pandya
				            ruling_only = yes
			            }
					    has_country_leader = {
				            character = XMY_varmanar_pandya
				            ruling_only = yes
			            }
					}
				}
			}
			FROM = {
			    exists = yes
                is_neighbor_of = ROOT
                NOT = {
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_puppet_of = ROOT
				}				
            }
		}
		available = {
			FROM = {
			    exists = yes
                is_neighbor_of = ROOT
                NOT = {
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_puppet_of = ROOT
				}				
            }
		}
		fire_only_once = yes		
		cost = 50
		complete_effect = {
			every_state = {
				limit = { is_core_of = FROM }				
				add_claim_by = ROOT
			}
			create_wargoal = {
				type = annex_everything
				target = FROM					
			}
		}
		ai_will_do = {
            base = 0
			modifier = {
				add = 5
				strength_ratio = {
					tag = FROM
					ratio > 0.6
				}
			}
		}
	}
}
zcy_kolonialnaya_politika = {
    zuf_core_colonial_state = {
		icon = generic_decision
        state_target = yes
        target_array = controlled_states 
        target_trigger = {
            FROM = {
                CONTROLLER = {
                    tag = ROOT
                }
                NOT = {
				    is_core_of = ROOT
                }				
            }       
        }         
        days_remove = 50 
		available = {
            FROM = {
			    is_fully_controlled_by = ROOT
			}
        }
		visible = {
            FROM = {
			    OR = {
                    is_core_of = ZAA
					is_core_of = ZSM
					is_core_of = ZMG
				}
                NOT = {
				    is_core_of = ROOT
				}
            }       	
		}       
        fire_only_once = no		
		cost = 25
        on_map_mode = map_only
        remove_effect = {
		    FROM = {
				add_core_of = ROOT			
			}
		}
	}
	zcy_zahvat_koloniy = {
		icon = generic_decision
		targets = {
		    ZAA ZCH ZSM ZMG
		}
		visible = {
		    FROM = {
			    exists = yes
                NOT = {
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_puppet_of = ROOT
				}				
            }
		}
		available = {
			FROM = {
			    exists = yes
                NOT = {
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_puppet_of = ROOT
				}				
            }
		}
		fire_only_once = yes		
		cost = 50
		complete_effect = {
			every_state = {
				limit = { is_core_of = FROM }				
				add_claim_by = ROOT
			}
			create_wargoal = {
				type = annex_everything
				target = FROM					
			}
		}
		ai_will_do = {
            base = 0
			modifier = {
				add = 5
				strength_ratio = {
					tag = FROM
					ratio > 0.6
				}
			}
		}
	}
}
zcy_pokorenie_afriki = {
    zuf_core_afrikan_state = {
		icon = generic_decision
        state_target = yes
        target_array = controlled_states 
        target_trigger = {
            FROM = {
                CONTROLLER = {
                    tag = ROOT
                }
                NOT = {
				    is_core_of = ROOT
                }				
            }       
        }         
        days_remove = 50 
		available = {
            FROM = {
			    is_fully_controlled_by = ROOT
			}
        }
		visible = {
            FROM = {
			    OR = {
                    is_core_of = ZJB
					is_core_of = ZDR
					is_core_of = ZET
					is_core_of = ZSK
					is_core_of = XAE
				}
                NOT = {
				    is_core_of = ROOT
				}
            }       	
		}       
        fire_only_once = no		
		cost = 25
        on_map_mode = map_only
        remove_effect = {
		    FROM = {
				add_core_of = ROOT			
			}
		}
	}
	zcy_zahvat_afriki = {
		icon = generic_decision
		targets = {
		    ZJB ZET ZDR XSK XAE
		}
		visible = {
		    FROM = {
			    exists = yes
                is_neighbor_of = ROOT
                NOT = {
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_puppet_of = ROOT
				}				
            }
		}
		available = {
			FROM = {
			    exists = yes
                is_neighbor_of = ROOT
                NOT = {
					has_war_with = ROOT
					is_in_faction_with = ROOT
					is_puppet_of = ROOT
				}				
            }
		}
		fire_only_once = yes		
		cost = 50
		complete_effect = {
			every_state = {
				limit = { is_core_of = FROM }				
				add_claim_by = ROOT
			}
			create_wargoal = {
				type = annex_everything
				target = FROM					
			}
		}
		ai_will_do = {
            base = 0
			modifier = {
				add = 5
				strength_ratio = {
					tag = FROM
					ratio > 0.6
				}
			}
		}
	}
}
zcy_komitet_respubliki = {
	zcy_revolt_poryadok = {
	    icon = generic_decision
		available = {
			has_stability < 1.0
			NOT = {
			    has_completed_focus = zcy_vlast_civit
			}
		}
		visible = {
			always = yes
		}
		fire_only_once = no
		modifier = {
			stability_weekly = 0.005
			war_support_weekly = 0.005
			communism_drift = 0.025
		}
		days_remove = 180
		days_re_enable = 270
		cost = 100
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_stability < 0.6
				has_political_power > 155 
			}
		}
    }
}