country_decisions = {

	puerto_rico_nation = {
		major = yes
		potential = {
			NOT = { has_country_flag = formed_puerto_rico_flag }
			OR = {
				ai = no
				is_playing_custom_nation = no
			}
			NOT = { exists = PTR }
			NOT = { tag = PAP }
			NOT = { tag = HLR }
			NOT = { tag = CBN }
			culture_group = caribeno
			OR = {
				ai = no
				AND = {
					ai = yes
					NOT = { num_of_cities = 4 }
				}
			}
			is_colonial_nation = no
			OR = {
				is_former_colonial_nation = no
				AND = {
					is_former_colonial_nation = yes
					ai = no
				}
			}
		}
		allow = {
			NOT = { num_of_cities = 4 }
			owns_core_province = 492			# Puerto Rico
		}
		effect = {
			change_tag = PTR
			if = {
				limit = {
					has_custom_ideas = no
					OR = {
						ai = no
						AND = {
							ai = yes
							has_idea_group = default_ideas
						}
					}
				}
				country_event = { id = ideagroups.1 } #Swap Ideas
			}
			if = {
				limit = {
					is_part_of_hre = yes
					is_elector = no
					is_emperor = no
				}
				every_owned_province = {
					limit = {
						is_part_of_hre = yes
					}
					set_in_empire = no
				}
			}
			if = {
				limit = {
					NOT = { government_rank = 2 }
				}
				set_government_rank = 2
			}
			add_country_modifier = {
				name = "centralization_modifier"
				duration = 7300
			}
			add_prestige = 10
			set_country_flag = formed_puerto_rico_flag
		}
		ai_will_do = {
			factor = 1
		}
	}
	
}
