﻿# For tooltips in localization
da_gui_gdp_ownership_self_list = {
	scope = country
	effect = {
		save_scope_as = _2 #TODO: Find out why it can work
		custom_tooltip = da_gui_gdp_ownership_title
		ordered_country = {
			order_by = {
				save_temporary_scope_as = _1
				value = gdp_ownership_ratio_value
			}
			max = 50
			check_range_bounds = no
			save_scope_as = _1
			if = {
				limit = {
					this != prev
					gdp_ownership_ratio_value > 0
				}
				custom_tooltip = da_gui_gdp_ownership_self_tt
			}
		}
	}
}

da_gui_gdp_ownership_other_list = {
	scope = country
	effect = {
		save_scope_as = _1
		custom_tooltip = da_gui_gdp_ownership_title
		ordered_country = {
			order_by = {
				save_temporary_scope_as = _2
				value = gdp_ownership_ratio_value
				multiply = scope:_2.gdp
			}
			max = 50
			check_range_bounds = no
			save_scope_as = _2
			if = {
				limit = {
					this != prev
					gdp_ownership_ratio_value > 0
				}
				custom_tooltip = da_gui_gdp_ownership_other_tt
			}
		}
	}
}
