RAJ_population_decisions = {

	RAJ_industrialize_state = {

		icon = generic_construction
		
		state_target = any_owned_state
		
		visible = { 
			ROOT = { 
				has_completed_focus = RAJ_administrative_oversight
				check_variable = { RAJ_agrarian_society_value < 0 } 
			} 
			FROM = {
				NOT = { has_state_flag = RAJ_industrialized_this_state }
			}
		}
		
		available = {
			FROM = { 
				infrastructure > 4 
				NOT = { has_state_flag = RAJ_industrialized_this_state }
			}
		}
		
		target_trigger = {			
			FROM = {
				is_core_of = ROOT
				is_owned_by = ROOT
				is_controlled_by = ROOT
				NOT = {
					state = 439
					state = 430
					state = 431
					state = 441
					state = 787
					state = 427
					state = 434
				}
			}
		}
		
		cost = 75
		fire_only_once = no
		days_remove = 90
		ai_will_do = {
			base = 0
			modifier = {
				add = 25
				FROM = {
					OR = { 
						state = 438
						state = 435
					}
				}
			}
		}
		complete_effect = {
			ROOT = { add_stability = -0.03 }
		}
		remove_effect = {
			custom_effect_tooltip = RAJ_reduce_agrarian_society_value_tooltip
			ROOT = { 
				add_to_variable = { RAJ_agrarian_society_value = RAJ_agrarian_society_increment }
			}
			FROM = {
				set_state_flag = RAJ_industrialized_this_state
				RAJ_upgrade_development = yes
				if = {
					limit = { ROOT = { has_completed_focus = RAJ_workforce_integration } }
					add_dynamic_modifier = {
						modifier = RAJ_industrialized_personnel
					}
				}
				if = {
					limit = { ROOT = { has_completed_focus = RAJ_land_clearance } }
					add_extra_state_shared_building_slots = 1
				}
			}
		}
	}


	RAJ_industrialize_state_goe = {

		icon = generic_construction
		
		allowed = {
			has_dlc = "Graveyard of Empires"
		}
		
		visible = { 
			FROM = {
				NOT = { has_state_flag = RAJ_industrialized_this_state }
			}
		}
		
		available = {
			FROM = { 
				infrastructure > 4
				NOT = { has_state_flag = RAJ_industrialized_this_state }
			}
		}

		target_ROOT_trigger = {
			has_completed_focus = RAJ_rural_development_plan
			check_variable = { RAJ_agrarian_society_conscription_factor < 0 }
		}

		state_target = yes

		target_array = ROOT.owned_states_at_game_start
		
		target_trigger = {			
			FROM = {
				is_fully_controlled_by = ROOT
				NOT = {
					state = 439
					state = 430
					state = 431
					state = 441
					state = 787
					state = 427
					state = 434
				}
			}
		}

		on_map_mode = map_only
		
		cost = 75
		fire_only_once = no
		days_remove = 90
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_political_power > 160
			}
			modifier = {
				add = 25
				FROM = {
					OR = { 
						state = 438
						state = 435
					}
				}
			}
		}

		complete_effect = {
			ROOT = { add_stability = -0.03 }
		}

		remove_effect = {
			FROM = {
				set_state_flag = RAJ_industrialized_this_state
				add_dynamic_modifier = {
					modifier = RAJ_industrialized_personnel
				}
				if = {
					limit = {
						ROOT = { has_completed_focus = RAJ_territorial_development_scheme }
					}
					add_extra_state_shared_building_slots = 1
				}
			}
		}
	}
}