on_actions = {
	on_startup = {
		effect = { #Set up state cost 
			every_state = {
				set_variable = { RSI_cost = state_population_k }
				set_variable = { RSI_MP_cost = state_population_k }
				multiply_variable = { RSI_cost = 1.1 }
				multiply_variable = { RSI_MP_cost = 22 }
				set_variable = { RSI_INF_cost = RSI_MP_cost }
				divide_variable = { RSI_INF_cost = 10 } 
				divide_variable = { RSI_cost = 20 } 
				add_to_variable = { RSI_cost = 1 }
				add_to_variable = { RSI_INF_cost = 1 }
				add_to_variable = { RSI_MP_cost = 1 }
				round_variable = RSI_cost
				round_variable = RSI_MP_cost
				round_variable = RSI_INF_cost
			}
		}
		effect = {
			if = {
				limit = {
					has_game_rule = {
						rule = state_integration_difficulty
						option = EASY_DIFF
					}
				}
				every_state = {
					divide_variable = { RSI_cost = 1.5 }
					divide_variable = { RSI_MP_cost = 1.5 }
					divide_variable = { RSI_INF_cost = 1.5 }
					round_variable = RSI_cost
					round_variable = RSI_MP_cost
					round_variable = RSI_INF_cost
				}
				every_country = {
					set_variable = { GLO_p_pp_cost = 35 }
					set_variable = { GLO_p_comp_cost = 70 }
					set_variable = { GLO_p_res_cost = 25 }
					set_variable = { GLO_p_mp_cost = 300 }
					set_variable = { GLO_p_inf_cost = 150 }
					set_variable = { GLO_f_comp_cost = 30 }
					set_variable = { GLO_f_res_cost = 40 }
					set_variable = { GLO_f_mp_cost = 6500 }
					set_variable = { GLO_f_inf_cost = 1000 }
				}
				set_global_flag = easy_difficulty
			} 
			else_if = {
				limit = {
					has_game_rule = {
						rule = state_integration_difficulty
						option = HARD_DIFF
					}
				}
				every_state = {
					multiply_variable = { RSI_cost = 1.25 }
					multiply_variable = { RSI_MP_cost = 1.25 }
					multiply_variable = { RSI_INF_cost = 1.25 }
					round_variable = RSI_cost
					round_variable = RSI_MP_cost
					round_variable = RSI_INF_cost
				}
				every_country = {
					set_variable = { GLO_p_pp_cost = 80 }
					set_variable = { GLO_p_comp_cost = 90 }
					set_variable = { GLO_p_res_cost = 10 }
					set_variable = { GLO_p_mp_cost = 1000 }
					set_variable = { GLO_p_inf_cost = 500 }
					set_variable = { GLO_f_comp_cost = 40 }
					set_variable = { GLO_f_res_cost = 30 }
					set_variable = { GLO_f_mp_cost = 13500 }
					set_variable = { GLO_f_inf_cost = 2750 }
				}
				set_global_flag = hard_difficulty
			}
			else_if = {
				limit = {
					has_game_rule = {
						rule = state_integration_difficulty
						option = VERY_HARD_DIFF
					}
				}
				every_state = {
					multiply_variable = { RSI_cost = 1.5 }
					multiply_variable = { RSI_MP_cost = 1.5 }
					multiply_variable = { RSI_INF_cost = 1.5 }
					round_variable = RSI_cost
					round_variable = RSI_MP_cost
					round_variable = RSI_INF_cost
				}
				every_country = {
					set_variable = { GLO_p_pp_cost = 100 }
					set_variable = { GLO_p_comp_cost = 95 }
					set_variable = { GLO_p_res_cost = 5 }
					set_variable = { GLO_p_mp_cost = 1500 }
					set_variable = { GLO_p_inf_cost = 750 }
					set_variable = { GLO_f_comp_cost = 45 }
					set_variable = { GLO_f_res_cost = 25 }
					set_variable = { GLO_f_mp_cost = 20000 }
					set_variable = { GLO_f_inf_cost = 4000 }
				}
				set_global_flag = very_hard_difficulty
			}
			else = {
				every_country = {
					set_variable = { GLO_p_pp_cost = 50 }
					set_variable = { GLO_p_comp_cost = 80 }
					set_variable = { GLO_p_res_cost = 20 }
					set_variable = { GLO_p_mp_cost = 500 }
					set_variable = { GLO_p_inf_cost = 250 }
					set_variable = { GLO_f_comp_cost = 35 }
					set_variable = { GLO_f_res_cost = 35 }
					set_variable = { GLO_f_mp_cost = 8500 }
					set_variable = { GLO_f_inf_cost = 1600 }
				}
				set_global_flag = medium_difficulty
			}
		}
	}
}