####### ACTUAL MECHANIC STUFF


defined_text = {
	name = GetGGR_ireland_status
	text = {
		trigger = {
			is_in_faction_with = IRE
		}
		localization_key = GGR_invite_ireland
	}
	text = {
		trigger = {
			NOT = {
				is_in_faction_with = IRE
			}
		}
		localization_key = GGR_invade_ireland
	}
}

defined_text = {
	name = GetGGR_ireland_status_desc
	text = {
		trigger = {
			is_in_faction_with = IRE
		}
		localization_key = GGR_invite_ireland_desc
	}
	text = {
		trigger = {
			NOT = {
				is_in_faction_with = IRE
			}
		}
		localization_key = GGR_invade_ireland_desc
	}
}

defined_text = {
	name = GetGGR_wales_status
	text = {
		trigger = {
			is_in_faction_with = WAL
		}
		localization_key = GGR_invite_wales
	}
	text = {
		trigger = {
			NOT = {
				is_in_faction_with = WAL
			}
		}
		localization_key = GGR_invade_wales
	}
}

defined_text = {
	name = GetGGR_wales_status_desc
	text = {
		trigger = {
			is_in_faction_with = WAL
		}
		localization_key = GGR_invite_wales_desc
	}
	text = {
		trigger = {
			NOT = {
				is_in_faction_with = WAL
			}
		}
		localization_key = GGR_invade_wales_desc
	}
}

defined_text = {
	name = GetGGR_nuclear_info_description
	text = {
		trigger = {
			has_completed_focus = GER_GOR_the_power_of_the_atom
		}
		localization_key = GGR_nuclear_info
	}
}

defined_text = {
	name = GetGGR_warlord_influence
	text = {
		trigger = {
			has_country_flag = GGR_show_warlord_influence
		}
		localization_key = GGR_warlord_influence
	}
}

defined_text = {
	name = GetGGR_kriegsmarine_development
	text = {
		trigger = {
			has_completed_focus = GGR_match_them
		}
		localization_key = GGR_kriegsmarine_development_matchthem
	}
	text = {
		trigger = {
			AND = {
				has_completed_focus = GGR_the_ringhorn_doctrine
				has_completed_focus = GGR_modernise_the_fleet
			}
		}
		localization_key = GGR_kriegsmarine_development_ringhorn_battleship
	}
	text = {
		trigger = {
			AND = {
				has_completed_focus = GGR_the_ringhorn_doctrine
				has_completed_focus = GGR_gut_the_hulks
			}
		}
		localization_key = GGR_kriegsmarine_development_ringhorn_carrier
	}
}

defined_text = {
	name = GetGGR_ringhorn_smallest_navy
	text = {
		trigger = {
			AND = {
				check_variable = {
					var = GER.num_ships
					value = USA.num_ships
					compare = less_than
				}
				check_variable = {
					var = GGR_ship_count
					value = JAP.num_ships
					compare = less_than
				}
			}
		}
		localization_key = GGR_GER_smallest_navy
	}
	text = {
		trigger = {
			AND = {
				check_variable = {
					var = JAP.num_ships
					value = USA.num_ships
					compare = less_than
				}
				check_variable = {
					var = JAP.num_ships
					value = GER.num_ships
					compare = less_than
				}
			}
		}
		localization_key = GGR_JAP_smallest_navy
	}
	text = {
		trigger = {
			AND = {
				check_variable = {
					var = USA.num_ships
					value = GER.num_ships
					compare = less_than
				}
				check_variable = {
					var = USA.num_ships
					value = JAP.num_ships
					compare = less_than
				}
			}
		}
		localization_key = GGR_USA_smallest_navy
	}
}

defined_text = {
	name = GetGarrisonStatus
	text = {
		trigger = {
			check_variable = { GGR_manpower_eating > 0 }
		}
		localization_key = GGR_garrisons_green
	}
	text = {
		localization_key = GGR_garrisons_red
	}
}

defined_text = {
	name = GetOccupationStatus
	text = {
		trigger = {
			check_variable = { GGR_money_eating > 0 }
		}
		localization_key = GGR_occupation_green
	}
	text = {
		localization_key = GGR_occupation_red
	}
}

### All-Russian Congress stuff ###
defined_text = {
	name = GetARC_unity
	text = {
		trigger = {
			check_variable = { global.ARC_unity = -5 }
		}
		localization_key = ARC_unity_brink
	}
	text = {
		trigger = {
			check_variable = { global.ARC_unity < -2 }
			NOT = {
				check_variable = { global.ARC_unity = -5 }
			}
		}
		localization_key = ARC_unity_low
	}
	text = {
		trigger = {
			check_variable = { global.ARC_unity > -3 }
			check_variable = { global.ARC_unity < 3 }
		}
		localization_key = ARC_unity_medium
	}
	text = {
		trigger = {
			check_variable = { global.ARC_unity > 2 }
		}
		localization_key = ARC_unity_high
	}
}

defined_text = {
	name = GWR_GetSubIdeologyLoc
	text = {
		trigger = {
			has_country_leader_ideology = national_socialism_machiavellian_nazism_goring_subtype
		}
		localization_key = "national_socialism_stratocratic_nazism_subtype"
	}
	text = {
		localization_key = "[GetSubIdeologyLoc]"
	}
}