building_fortress = {
	base_buildtime = @b1_time
	can_build = no
	planetary_ftl_inhibitor = yes
	position_priority = 100
	can_be_ruined = no
	category = army

	building_sets = {
		government
		fortress
	}

	potential = {
		owner = { is_wilderness_empire = no } # see 'building_planetary_carapace_2'
	}
	allow = {
		has_upgraded_capital = yes
	}

	resources = {
		category = planet_buildings_strongholds
		cost = {
			minerals = @b2_minerals
			volatile_motes = @b2_rare_cost
		}
		upkeep = {
			energy = 1
			volatile_motes = @b2_rare_upkeep
		}
	}

	prerequisites = {
		"tech_global_defense_grid"
	}
	show_tech_unlock_if = {
		is_wilderness_empire = no
	}
	
	upgrades = {
		"building_plentiful_traditions_zitadom"
	}
	
	inline_script = {
		script = jobs/soldiers_add
		AMOUNT = @building_static_jobs_high
	}
}

building_plentiful_traditions_zitadom = {
	base_buildtime = @b1_time
	can_build = no
	planetary_ftl_inhibitor = yes
	position_priority = 100
	can_be_ruined = no
	category = army

	building_sets = {
		government
		fortress
	}

	potential = {
		owner = { is_wilderness_empire = no } # see 'building_planetary_carapace_2'
		owner = {
			has_tradition = tr_plentiful_defence_5
		}
	}
	allow = {
		has_upgraded_capital = yes
	}

	resources = {
		category = planet_buildings_strongholds
		cost = {
			minerals = 600
			volatile_motes = 75
		}			
		upkeep = {
			energy = 2
			volatile_motes = 2
			alloys = 5
		}
	}
	
	prerequisites = {
		"tech_global_defense_grid"
	}
	show_tech_unlock_if = {
		is_wilderness_empire = no
	}
	
	planet_modifier = {
		planet_housing_add = 600
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
			owner = {
				has_ascension_perk = ap_plentiful_traditions_bunker_mentality
			}
		}
		modifier = {
			job_soldier_add = 600
		}
	}
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
			owner = {
				has_ascension_perk = ap_plentiful_traditions_bunker_mentality
			}
		}
		modifier = {
			job_warrior_drone_add = 600
		}
	}

	inline_script = {
		script = jobs/soldiers_add
		AMOUNT = @building_static_jobs_very_high
	}
}

building_plentiful_traditions_syndicate_quarters = {
	base_buildtime = 300
	base_cap_amount = 3

	category = army

	building_sets = {
		government
	}
	
	potential = {
		exists = owner
		NOT = { has_modifier = resort_colony }	
		NOT = { has_modifier = slave_colony }
		owner = {
			has_tradition = tr_plentiful_kleptocracy_5
		}
	}
	
	allow = {
		has_major_upgraded_capital = yes
	}

	resources = {
		category = planet_buildings
		cost = {
			minerals = 225
			exotic_gases = 50
		}
		upkeep = {
			energy = 1
			exotic_gases = 1
		}
		produces = {
			unity = 2
		}
	}
	
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_soldier_add = 100
			planet_housing_add = 100
		}
	}
	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_warrior_drone_add = 100
			planet_housing_add = 100
		}
	}
	
	country_modifier  = {
		country_naval_cap_add = 10
	}
	
	show_tech_unlock_if = { 
		owner = {
			has_tradition = tr_plentiful_kleptocracy_5
		}
	}
	
	ai_weight = {
		weight = 10
	}
}