ZJA_nation_decis = { #shogunat fassscism
		ZJA_priznat_nosurando = {
			icon = generic_operation
			allowed = {
				original_tag = ZJA
			}
			available = {				
				has_war_with = ZKM
				NOT = {
#					controls_state = 562
					controls_state = 637
					controls_state = 560
					controls_state = 939
				}
				ZKM = {
					controls_state = 574
					controls_state = 862
					controls_state = 863
#					controls_state = 562
					controls_state = 637
					controls_state = 939					
				}
			}
			visible = {			
				is_subject = no
				has_government = fascism
				country_exists = ZKM
				has_war_with = ZKM
				ZKM = {
					is_in_faction = no
				}
				has_global_flag = nosurand_revol	
			}
			cost = 2
			fire_only_once = yes
			activation = {
			}
			complete_effect = {
				country_event = {
						id = japanimp.8
				}	
			}
			ai_will_do = {
				factor = 300			
			}		
		}
		

	
	zja_impr_worker_conditions = {
		icon = generic_industry
		available = {
			has_stability < 1.0
		}
		visible = {
			has_completed_focus = zja_umenshenie_prav_naslednika
		}
		fire_only_once = no
		modifier = {
			stability_weekly = 0.003
			consumer_goods_factor = 0.05
			industrial_capacity_factory = -0.1
		}
		days_remove = 150
		days_re_enable = 360
		cost = 80
		complete_effect = {
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_stability < 0.6
			}
		}
	}
	zja_impr_warsapp_conditions = {
		icon = generic_industry
		available = {
			has_war_support < 1.0
		}
		visible = {
			has_completed_focus = zja_umenshenie_prav_naslednika
		}
		fire_only_once = no
		modifier = {
			war_support_weekly = 0.003
			consumer_goods_factor = 0.05
			industrial_capacity_factory = -0.1
		}
		days_remove = 150
		days_re_enable = 360
		cost = 80
		complete_effect = {
		}
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_war_support < 0.6
			}
		}
	}
	zja_dolf_v_obmen_na_sodeistvie = {
		icon = generic_political_discourse
		available = {
			has_government = fascism			
			has_war = yes			
			NOT = {
				has_war_with = ZHA	
			}
			ZHA = {				
				exists = yes
				has_government = fascism
				NOT = {
					has_completed_focus = zha_konvfikt_na_vostoke
					has_idea = zha_neutral_politika
				}				
			}			
		}
		visible = {
			has_global_flag = zha_segunat_dolg_defolt
			has_war = yes
			ZHA = {
				NOT = {
					has_completed_focus = zha_konvfikt_na_vostoke
				}
			}
		}
		fire_only_once = yes		
		cost = 5
		complete_effect = {			
			ZHA = {
				country_event = { id = hanchines.86 }
			}
		}
		ai_will_do = {
			factor = 0
		}
	}

}
#####################прокачка островов на великом океане
ZJA_ukreplenie_ostrovo_v_velikom_okeane_decis = { 
	zja_prokachat_state_645 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 645					
		}
		visible = {					
			has_full_control_of_state = 645
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {
			if = {
				limit = {
					645 = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				645 = {
					add_extra_state_shared_building_slots = 1
				}
			}		
			645 = {
				add_building_construction = {
					type = naval_base
					province = 13025
					level = 5
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_526 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 526					
		}
		visible = {					
			has_full_control_of_state = 526
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {
			if = {
				limit = {
					526 = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				526 = {
					add_extra_state_shared_building_slots = 1
				}
			}		
			526 = {
				add_building_construction = {
					type = naval_base
					province = 11932
					level = 5
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_638 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 638					
		}
		visible = {				
			has_full_control_of_state = 638
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {
			if = {
				limit = {
					638 = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				638 = {
					add_extra_state_shared_building_slots = 1
				}
			}		
			638 = {
				add_building_construction = {
					type = naval_base
					province = 12140
					level = 5
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_629 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 629					
		}
		visible = {			
			has_full_control_of_state = 629
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {
			if = {
				limit = {
					629 = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				629 = {
					add_extra_state_shared_building_slots = 1
				}
			}		
			629 = {
				add_building_construction = {
					type = naval_base
					province = 12021
					level = 5
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_336 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 336					
		}
		visible = {				
			has_full_control_of_state = 336
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {
			if = {
				limit = {
					336 = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				336 = {
					add_extra_state_shared_building_slots = 1
				}
			}		
			336 = {
				add_building_construction = {
					type = naval_base
					province = 10297
					level = 5
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_801 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 801					
		}
		visible = {						
			has_full_control_of_state = 801
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {
			if = {
				limit = {
					801 = {
						free_building_slots = {
							building = industrial_complex
							size > 0
							include_locked = yes
						}
					}
				}
				801 = {
					add_extra_state_shared_building_slots = 1
				}
			}		
			801 = {
				add_building_construction = {
					type = naval_base
					province = 7329
					level = 5
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
}	
############################## прокачка островов во всем мире
ZJA_ukreplenie_ostrovo_vo_vsem_mire_decis = {
	zja_prokachat_state_okean_950 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 942					
		}
		visible = {				
			has_full_control_of_state = 942
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {					
			801 = {
				add_building_construction = {
					type = naval_base
					province = 5139
					level = 3
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_okean_926 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 926					
		}
		visible = {				
			has_full_control_of_state = 926
		}
		fire_only_once = yes
		cost = 45			
		complete_effect = {					
			926 = {
				add_building_construction = {
					type = naval_base
					province = 10921
					level = 2
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_okean_858 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 858					
		}
		visible = {			
			has_full_control_of_state = 858
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {					
			858 = {
				add_building_construction = {
					type = naval_base
					province = 8000
					level = 2
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_okean_299 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 299					
		}
		visible = {				
			has_full_control_of_state = 299
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {					
			299 = {
				add_building_construction = {
					type = naval_base
					province = 12960
					level = 2
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_okean_703 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 703					
		}
		visible = {				
			has_full_control_of_state = 703
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {					
			703 = {
				add_building_construction = {
					type = naval_base
					province = 13013
					level = 2
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_okean_320 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 320					
		}
		visible = {				
			has_full_control_of_state = 320
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {					
			320 = {
				add_building_construction = {
					type = naval_base
					province = 10278
					level = 2
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_okean_959 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 959					
		}
		visible = {					
			has_full_control_of_state = 959
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {					
			959 = {
				add_building_construction = {
					type = naval_base
					province = 2210
					level = 2
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
	zja_prokachat_state_okean_954 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 954					
		}
		visible = {				
			has_full_control_of_state = 954
		}
		fire_only_once = yes
		cost = 50			
		complete_effect = {					
			954 = {
				add_building_construction = {
					type = naval_base
					province = 5159
					level = 2
				}				
			}
		}		
		ai_will_do = {
			factor = 5
		}
	}
}	
#############
ZJA_progaja_ostrovo_v_atlantike_decis = {   #shogunat
	zja_vystavit_na_prodaju_950 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no
			has_government = fascism	
			has_full_control_of_state = 942					
		}
		visible = {				
			has_full_control_of_state = 942
			NOT = {
				has_global_flag = zja_prodaet_950
				has_global_flag = zja_prodano_950_vse
			}
		}
		fire_only_once = no
		cost = 2			
		complete_effect = {					
			set_global_flag = zja_prodaet_950
		}		
		ai_will_do = {
			factor = 200
		}
	}
	zja_ubrat_s_prodaji_950 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 942					
		}
		visible = {				
			has_full_control_of_state = 942			
			has_global_flag = zja_prodaet_950			
		}
		fire_only_once = no
		cost = 2			
		complete_effect = {					
			clr_global_flag = zja_prodaet_950
		}		
		ai_will_do = {
			base = 0
			modifier = {
				add = 5
				has_government = neutrality
			}
		}
	}
	###
	zja_vystavit_na_prodaju_703 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no
			has_government = fascism	
			has_full_control_of_state = 703					
		}
		visible = {				
			has_full_control_of_state = 703
			NOT = {
				has_global_flag = zja_prodaet_703
				has_global_flag = zja_prodano_703_vse
			}
		}
		fire_only_once = no
		cost = 2			
		complete_effect = {					
			set_global_flag = zja_prodaet_703
		}		
		ai_will_do = {
			factor = 200
		}
	}
	zja_ubrat_s_prodaji_703 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 703					
		}
		visible = {				
			has_full_control_of_state = 703			
			has_global_flag = zja_prodaet_703			
		}
		fire_only_once = no
		cost = 2			
		complete_effect = {					
			clr_global_flag = zja_prodaet_703
		}		
		ai_will_do = {
			base = 0
			modifier = {
				add = 5
				has_government = neutrality
			}
		}
	}
	####
	zja_vystavit_na_prodaju_720 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no
			has_government = fascism	
			has_full_control_of_state = 720					
		}
		visible = {				
			has_full_control_of_state = 720
			NOT = {
				has_global_flag = zja_prodaet_720
				has_global_flag = zja_prodano_720_vse
			}
		}
		fire_only_once = no
		cost = 2			
		complete_effect = {					
			set_global_flag = zja_prodaet_720
		}		
		ai_will_do = {
			factor = 200
		}
	}
	zja_ubrat_s_prodaji_720 = {	
		icon = generic_operation
#		allowed = {
#			original_tag = ZJA
#		}
		available = {
			is_subject = no				
			has_full_control_of_state = 720					
		}
		visible = {				
			has_full_control_of_state = 720			
			has_global_flag = zja_prodaet_720			
		}
		fire_only_once = no
		cost = 2			
		complete_effect = {					
			clr_global_flag = zja_prodaet_720
		}		
		ai_will_do = {
			base = 0
			modifier = {
				add = 5
				has_government = neutrality
			}
		}
	}

}
#############################################	


#######################################

ZJA_imperatoristarget_decis = {

		ZJA_imperatoristarget_fast_plan = {
			icon = generic_operation
			allowed = { always = no } #Activated from effect
			available = {
				hidden_trigger = {
					always = no 
				}
			}
			days_mission_timeout = 35
			fire_only_once = yes
			is_good = no		
			timeout_effect = {
				country_event = {
					id = japanimp.44
				}
			}		
		}
		ZJA_imperatoristarget_slowww_plan = {
			icon = generic_operation
			allowed = { always = no } #Activated from effect
			available = {
				hidden_trigger = {
					always = no 
				}
			}
			days_mission_timeout = 75
			fire_only_once = yes
			is_good = no		
			timeout_effect = {
				country_event = {
					id = japanimp.44
				}
			}		
		}
}

