on_actions = {
    on_civil_war_end = {
	    effect = {
		    if = {
			    limit = {
				    original_tag = XMD
				}
				country_event = ilam.15
				set_country_flag = zcy_civil_war_over
				mark_focus_tree_layout_dirty = yes
				if = {
				    limit = {
					    NOT = {
					        is_in_faction_with = ZCS
						}
					}
					ZCS = { 
				        country_event = ilam.56
				    }
				}
			}
			if = {
			    limit = {
				    original_tag = ZCY
					XMY = {
					    has_war_with = ZCY
					}
				}
				XMY = {
				    white_peace = ZCY
				}
			}
			if = {
			    limit = {
				    original_tag = ZCY
				}
				country_event = ilam.28
				set_country_flag = zcy_civil_war_over
				mark_focus_tree_layout_dirty = yes
				FROM = {
				    ZCY_ganesan_anbil = {
				        set_nationality = ROOT
			            remove_unit_leader_role = yes
		            }
		            ZCY_surendar_vishrajesh = {
			            set_nationality = ROOT
			            remove_unit_leader_role = yes
					}
		        }
			}
			if = {
			    limit = {
				    original_tag = ZCE
				}
				every_state = {
			        limit = {
				        is_core_of = ZCH
				    }
				    remove_core_of = ZCH			    
				}
			}
			if = {
			    limit = {
				    original_tag = ZCH
				}
				every_state = {
			        limit = {
				        is_core_of = ZCE
				    }
				    remove_core_of = ZCE			    
				}
			}
		}
	}
	on_monthly_ZCY = {
	    effect = {
		    if = {
			    limit = {
				    has_idea = zcy_gorod_grehov
				}
				add_to_variable = { ar_weap_deneg_var = 25 }
			}
		}
	}
}