﻿

adv_pop_value = {
	value = 1
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_main_01 } } add = 2 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_main_02 } } add = 2 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_main_03 } } add = 2 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_main_04 } } add = 2 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = supply_tent_01 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = supply_tent_02 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = supply_tent_03 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = supply_tent_04 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = supply_tent_05 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = supply_tent_06 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = barber_tent_01 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = barber_tent_02 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = barber_tent_03 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = barber_tent_04 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = barber_tent_05 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = barber_tent_06 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = baggage_train_01 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = baggage_train_02 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = baggage_train_03 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = baggage_train_04 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = baggage_train_05 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = baggage_train_06 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = mess_tent_01 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = mess_tent_02 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = mess_tent_03 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = mess_tent_04 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = mess_tent_05 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = mess_tent_06 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_fire_01 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = proving_grounds_01 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = proving_grounds_02 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = proving_grounds_03 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = proving_grounds_04 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = proving_grounds_05 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = proving_grounds_06 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_perimeter_01 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_perimeter_02 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_perimeter_03 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_perimeter_04 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_perimeter_05 } } add = 1 }
	if = { limit = { domicile ?= { has_domicile_building_or_higher = camp_perimeter_06 } } add = 1 }
	add = {
		value = number_of_maa_regiments
	}
	add = {
		value = number_of_knights
		divide = 2
	}
	divide = 10
}
