#scmr_notfull_building	建筑未造满
#scmr_hp_building		医院建筑未满
#scmr_trade_building	贸易站建筑未满
#scmr_family_palace		家族宫殿建筑未满

scmr_notfull_building = {
	OR = {
		AND = {
			holding_type = castle
			NAND = {
				has_building = ca_wall_5
				has_building = ca_wall_q_5
				has_building = ca_training_grounds_3
				has_building = ca_barracks_6
				has_building = ca_militia_barracks_4
				has_building = ca_town_5
				has_building = ca_keep_6
				has_building = ca_stable_5
				#has_building = ca_shipyard_2 
			}
		}
		AND = {
			holding_type = temple
			NAND = {
				has_building = tp_wall_5
                has_building = tp_wall_q_5
                has_building = tp_barracks_6
                has_building = tp_elite_barracks_6
                has_building = tp_town_6
               #has_building = tp_shipyard_2
                has_building = tp_school_2
                has_building = tp_monastery_6
			}
		}
		AND = {
			holding_type = city
			NAND = {
				has_building = ct_wall_5
				has_building = ct_wall_q_5
				has_building = ct_training_grounds_6
				has_building = ct_barracks_6
				has_building = ct_marketplace_6
				has_building = ct_guard_5
				#has_building = ct_port_5
				#has_building = ct_shipyard_2
				has_building = ct_university_3
			}
		}
		AND = {
			holding_type = tribal
			NAND = {
				has_building = tb_hillfort_4
				has_building = tb_market_town_4
				has_building = tb_training_grounds_4
				has_building = tb_war_camp_4
				#has_building = tb_shipyard_4
				has_building = tb_practice_range_4
				has_building = tb_steppe_barracks_4
				has_building = tb_steppe_stable_4
				has_building = tb_arsenal_4
			}
		}
		AND = {
			holding_type = nomad
			NAND = {
				has_building = no_horse_breeder_8
				has_building = no_riding_contests_8
				has_building = no_wagon_train_8
				has_building = no_craftsmens_quarter_8
				has_building = no_training_grounds_8
				has_building = no_messenger_system_8
				#has_building = no_harbor_8
				has_building = no_gathering_hall_8
				has_building = no_camp_fortifications_8
			}
		}
	}
}


scmr_hp_building = {
	NAND = {
		hospital_has_building=hospital_building_5
		hospital_has_building=library_1
		hospital_has_building=leper_colony_1
		hospital_has_building=translation_house_1
		hospital_has_building=medical_academy_1
		hospital_has_building=pilgrims_inn_1
		hospital_has_building=chapel_1
		hospital_has_building=soup_kitchen_1
		hospital_has_building=pharmacology_laboratory_1
		hospital_has_building=observatory_1
	}
}

scmr_trade_building = {
	NAND = {
		trade_post_has_building=tr_port_3
		trade_post_has_building=tr_enclave_3
		trade_post_has_building=tr_garrison_3
	}
}

scmr_family_palace = {
	family_palace = {
		or = {
			not =
			{
				has_building = fp_mansion_1
			}
			not =
			{
				has_building = fp_mansion_2
			}
			not =
			{
				has_building = fp_mansion_3
			}
			not =
			{
				has_building = fp_mansion_4
			}
			not =
			{
				has_building = fp_barracks_1
			}
			not =
			{
				has_building = fp_barracks_2
			}
			not =
			{
				has_building = fp_barracks_3
			}
			not =
			{
				has_building = fp_stable_1
			}
			not =
			{
				has_building = fp_stable_2
			}
			not =
			{
				has_building = fp_stable_3
			}
			not =
			{
				has_building = fp_bowyer_1
			}
			not =
			{
				has_building = fp_bowyer_2
			}
			not =
			{
				has_building = fp_bowyer_3
			}
			not =
			{
				has_building = fp_shipyard_1
			}
			not =
			{
				has_building = fp_shipyard_2
			}
			not =
			{
				has_building = fp_shipyard_3
			}
			not =
			{
				has_building = fp_warehouse_1
			}
			not =
			{
				has_building = fp_warehouse_2
			}
			not =
			{
				has_building = fp_warehouse_3
			}
			not =
			{
				has_building = fp_garden_1
			}
			not =
			{
				has_building = fp_garden_2
			}
			not =
			{
				has_building = fp_garden_3
			}
			not =
			{
				has_building = fp_cellar_1
			}
			not =
			{
				has_building = fp_cellar_2
			}
			not =
			{
				has_building = fp_cellar_3
			}
			not =
			{
				has_building = fp_shrine_1
			}
			not =
			{
				has_building = fp_shrine_2
			}
			not =
			{
				has_building = fp_shrine_3
			}
			not =
			{
				has_building = fp_vault_1
			}
			not =
			{
				has_building = fp_vault_2
			}
			not =
			{
				has_building = fp_vault_3
			}
		}
	}
}
