JAP_time_to_war = {

}



JAP_annex = {
	
	JAP_annex_MAN = {
	
		icon = generic_army_support

		available = {
		or = {date > 1938.01.01 has_War_with = chi}
			
		    and = {
			    any_other_country = {
				    original_tag = MAN
				    exists = yes
			    }
				MAN = { 
				    NOt = {
				        has_completed_focus = MAN_national_cooperation_government 
					}
				}	
			    MAN = { is_ai = yes }
			}
		}

		target_trigger = {
			FROM = {
				OR = {
					original_tag = MAN
				}
			}
		}

		fire_only_once = yes
		days_remove    = -1
		
		complete_effect = {
		
			
			annex_country = { target = MAN transfer_troops = yes}
			
			MAN = {
				transfer_units_fraction= {
					target = JAP
					size = 1
					stockpile_ratio = 1
					army_ratio = 1
					navy_ratio = 1
					air_ratio = 1
				}
			}
			
			every_state = {
				limit = { is_core_of = MAN }
				add_core_of = ROOT
			}
			MAN = {
			    every_unit_leader = {
				    set_nationality = JAP
			    }
			}

			MAN = {			
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_invite_japanese_settlers}	
						}
					}
					complete_national_focus = MAN_invite_japanese_settlers					
				}
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_expand_the_textile_industry}	
						}
					}
					complete_national_focus = MAN_expand_the_textile_industry					
				}
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_collective_farms}	
						}
					}
					complete_national_focus = MAN_collective_farms					
				}
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_expand_showa_steel_works}	
						}
					}
					complete_national_focus = MAN_expand_showa_steel_works					
				}
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_invite_japanese_investors}	
						}
					}
					complete_national_focus = MAN_invite_japanese_investors					
				}
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_mukden_arsenal}	
						}
					}
					complete_national_focus = MAN_mukden_arsenal					
				}		
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_railway_compani}	
						}
					}
					complete_national_focus = MAN_railway_compani					
				}		
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_China_railway}	
						}
					}
					complete_national_focus = MAN_China_railway					
				}				
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_China_railway_2}	
						}
					}
					complete_national_focus = MAN_China_railway_2					
				}	
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_move_capitals}	
						}
					}
					complete_national_focus = MAN_move_capitals					
				}	
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_collective_farms}	
						}
					}
					complete_national_focus = MAN_collective_farms					
				}	
				if = {
					limit = {
						not = {
							MAN = {has_completed_focus = MAN_China_infr}	
						}
					}
					complete_national_focus = MAN_China_infr					
				}					
			}
		}
	}

}