### cow_set_building_lvl_flag_effect
### cow_add_building_lvl_effect

cow_set_building_lvl_flag_effect = {
	if = { 
		limit = { 
			has_building = guild_halls_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_guild_halls_01 }
	}
	if = { 
		limit = {  
			has_building = guild_halls_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_guild_halls_02 }
	}
	if = { 
		limit = {  
			has_building = guild_halls_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_guild_halls_03 }
	}
	if = { 
		limit = {  
			has_building = guild_halls_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_guild_halls_04 }
	}
	if = { 
		limit = {  
			has_building = guild_halls_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_guild_halls_05 }
	}
	if = { 
		limit = {  
			has_building = guild_halls_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_guild_halls_06 }
	}
	if = { 
		limit = {  
			has_building = guild_halls_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_guild_halls_07 }
	}
	if = { 
		limit = {  
			has_building = guild_halls_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_guild_halls_08 }
	}
	if = { 
		limit = {  
			has_building = common_tradeport_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_01 }
	}
	if = { 
		limit = {  
			has_building = common_tradeport_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_02 }
	}
	if = { 
		limit = {  
			has_building = common_tradeport_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_03 }
	}
	if = { 
		limit = {  
			has_building = common_tradeport_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_04 }
	}
	if = { 
		limit = {  
			has_building = common_tradeport_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_05 }
	}
	if = { 
		limit = {  
			has_building = common_tradeport_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_06 }
	}
	if = { 
		limit = {  
			has_building = common_tradeport_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_07 }
	}
	if = { 
		limit = {  
			has_building = common_tradeport_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_08 }
	}
	if = { 
		limit = {  
			has_building = pastures_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_pastures_01 }
	}
	if = { 
		limit = {  
			has_building = pastures_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_pastures_02 }
	}
	if = { 
		limit = {  
			has_building = pastures_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_pastures_03 }
	}
	if = { 
		limit = {  
			has_building = pastures_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_pastures_04 }
	}
	if = { 
		limit = {  
			has_building = pastures_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_pastures_05 }
	}
	if = { 
		limit = {  
			has_building = pastures_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_pastures_06 }
	}
	if = { 
		limit = {  
			has_building = pastures_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_pastures_07 }
	}
	if = { 
		limit = {  
			has_building = pastures_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_pastures_08 }
	}
	if = { 
		limit = {  
			has_building = hunting_grounds_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_01 }
	}
	if = { 
		limit = {  
			has_building = hunting_grounds_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_02 }
	}
	if = { 
		limit = {  
			has_building = hunting_grounds_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_03 }
	}
	if = { 
		limit = {  
			has_building = hunting_grounds_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_04 }
	}
	if = { 
		limit = {  
			has_building = hunting_grounds_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_05 }
	}
	if = { 
		limit = {  
			has_building = hunting_grounds_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_06 }
	}
	if = { 
		limit = {  
			has_building = hunting_grounds_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_07 }
	}
	if = { 
		limit = {  
			has_building = hunting_grounds_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_08 }
	}
	if = { 
		limit = {  
			has_building = orchards_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_orchards_01 }
	}
	if = { 
		limit = {  
			has_building = orchards_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_orchards_02 }
	}
	if = { 
		limit = {  
			has_building = orchards_03
		}
 		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_orchards_03 }
	}
	if = { 
		limit = {  
			has_building = orchards_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_orchards_04 }
	}
	if = { 
		limit = {  
			has_building = orchards_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_orchards_05 }
	}
	if = { 
		limit = {  
			has_building = orchards_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_orchards_06 }
	}
	if = { 
		limit = {  
			has_building = orchards_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_orchards_07 }
	}
	if = { 
		limit = {  
			has_building = orchards_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_orchards_08 }
	}
	if = { 
		limit = {  
			has_building = farm_estates_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_farm_estates_01 }
	}
	if = { 
		limit = {  
			has_building = farm_estates_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_farm_estates_02 }
	}
	if = { 
		limit = {  
			has_building = farm_estates_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_farm_estates_03 }
	}
	if = { 
		limit = {  
			has_building = farm_estates_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_farm_estates_04 }
	}
	if = { 
		limit = {  
			has_building = farm_estates_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_farm_estates_05 }
	}
	if = { 
		limit = {  
			has_building = farm_estates_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_farm_estates_06 }
	}
	if = { 
		limit = {  
			has_building = farm_estates_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_farm_estates_07 }
	}
	if = { 
		limit = {  
			has_building = farm_estates_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_farm_estates_08 }
	}
	if = { 
		limit = {  
			has_building = military_camps_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_camps_01 }
	}
	if = { 
		limit = {  
			has_building = military_camps_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_camps_02 }
	}
	if = { 
		limit = {  
			has_building = military_camps_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_camps_03 }
	}
	if = { 
		limit = {  
			has_building = military_camps_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_camps_04 }
	}
	if = { 
		limit = {  
			has_building = military_camps_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_camps_05 }
	}
	if = { 
		limit = {  
			has_building = military_camps_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_camps_06 }
	}
	if = { 
		limit = {  
			has_building = military_camps_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_camps_07 }
	}
	if = { 
		limit = {  
			has_building = military_camps_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_camps_08 }
	}
	if = { 
		limit = {  
			has_building = regimental_grounds_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_01 }
	}
	if = { 
		limit = {  
			has_building = regimental_grounds_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_02 }
	}
	if = { 
		limit = {  
			has_building = regimental_grounds_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_03 }
	}
	if = { 
		limit = {  
			has_building = regimental_grounds_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_04 }
	}
	if = { 
		limit = {  
			has_building = regimental_grounds_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_05 }
	}
	if = { 
		limit = {  
			has_building = regimental_grounds_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_06 }
	}
	if = { 
		limit = {  
			has_building = regimental_grounds_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_07 }
	}
	if = { 
		limit = {  
			has_building = regimental_grounds_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_08 }
	}
	if = { 
		limit = {  
			has_building = ramparts_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_ramparts_01 }
	}
	if = { 
		limit = {  
			has_building = ramparts_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_ramparts_02 }
	}
	if = { 
		limit = {  
			has_building = ramparts_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_ramparts_03 }
	}
	if = { 
		limit = {  
			has_building = ramparts_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_ramparts_04 }
	}
	if = { 
		limit = {  
			has_building = ramparts_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_ramparts_05 }
	}
	if = { 
		limit = {  
			has_building = ramparts_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_ramparts_06 }
	}
	if = { 
		limit = {  
			has_building = ramparts_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_ramparts_07 }
	}
	if = { 
		limit = {  
			has_building = ramparts_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_ramparts_08 }
	}
	if = { 
		limit = {  
			has_building = curtain_walls_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_01 }
	}
	if = { 
		limit = {  
			has_building = curtain_walls_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_02 }
	}
	if = { 
		limit = {  
			has_building = curtain_walls_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_03 }
	}
	if = { 
		limit = {  
			has_building = curtain_walls_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_04 }
	}
	if = { 
		limit = {  
			has_building = curtain_walls_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_05 }
	}
	if = { 
		limit = {  
			has_building = curtain_walls_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_06 }
	}
	if = { 
		limit = {  
			has_building = curtain_walls_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_07 }
	}
	if = { 
		limit = {  
			has_building = curtain_walls_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_08 }
	}
	if = { 
		limit = {  
			has_building = watchtowers_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_watchtowers_01 }
	}
	if = { 
		limit = {  
			has_building = watchtowers_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_watchtowers_02 }
	}
	if = { 
		limit = {  
			has_building = watchtowers_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_watchtowers_03 }
	}
	if = { 
		limit = {  
			has_building = watchtowers_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_watchtowers_04 }
	}
	if = { 
		limit = {  
			has_building = watchtowers_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_watchtowers_05 }
	}
	if = { 
		limit = {  
			has_building = watchtowers_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_watchtowers_06 }
	}
	if = { 
		limit = {  
			has_building = watchtowers_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_watchtowers_07 }
	}
	if = { 
		limit = {  
			has_building = watchtowers_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_watchtowers_08 }
	}
	if = { 
		limit = {  
			has_building = cereal_fields_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_01 }
	}
	if = { 
		limit = {  
			has_building = cereal_fields_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_02 }
	}
	if = { 
		limit = {  
			has_building = cereal_fields_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_03 }
	}
	if = { 
		limit = {  
			has_building = cereal_fields_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_04 }
	}
	if = { 
		limit = {  
			has_building = cereal_fields_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_05 }
	}
	if = { 
		limit = {  
			has_building = cereal_fields_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_06 }
	}
	if = { 
		limit = {  
			has_building = cereal_fields_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_07 }
	}
	if = { 
		limit = {  
			has_building = cereal_fields_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_08 }
	}
	if = { 
		limit = {  
			has_building = outposts_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_outposts_01 }
	}
	if = { 
		limit = {  
			has_building = outposts_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_outposts_02 }
	}
	if = { 
		limit = {  
			has_building = outposts_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_outposts_03 }
	}
	if = { 
		limit = {  
			has_building = outposts_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_outposts_04 }
	}
	if = { 
		limit = {  
			has_building = outposts_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_outposts_05 }
	}
	if = { 
		limit = {  
			has_building = outposts_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_outposts_06 }
	}
	if = { 
		limit = {  
			has_building = outposts_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_outposts_07 }
	}
	if = { 
		limit = {  
			has_building = outposts_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_outposts_08 }
	}
	if = { 
		limit = {  
			has_building = barracks_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_barracks_01 }
	}
	if = { 
		limit = {  
			has_building = barracks_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_barracks_02 }
	}
	if = { 
		limit = {  
			has_building = barracks_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_barracks_03 }
	}
	if = { 
		limit = {  
			has_building = barracks_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_barracks_04 }
	}
	if = { 
		limit = {  
			has_building = barracks_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_barracks_05 }
	}
	if = { 
		limit = {  
			has_building = barracks_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_barracks_06 }
	}
	if = { 
		limit = {  
			has_building = barracks_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_barracks_07 }
	}
	if = { 
		limit = {  
			has_building = barracks_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_barracks_08 }
	}
	if = { 
		limit = {  
			has_building = camel_farms_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_camel_farms_01 }
	}
	if = { 
		limit = {  
			has_building = camel_farms_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_camel_farms_02 }
	}
	if = { 
		limit = {  
			has_building = camel_farms_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_camel_farms_03 }
	}
	if = { 
		limit = {  
			has_building = camel_farms_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_camel_farms_04 }
	}
	if = { 
		limit = {  
			has_building = camel_farms_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_camel_farms_05 }
	}
	if = { 
		limit = {  
			has_building = camel_farms_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_camel_farms_06 }
	}
	if = { 
		limit = {  
			has_building = camel_farms_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_camel_farms_07 }
	}
	if = { 
		limit = {  
			has_building = camel_farms_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_camel_farms_08 }
	}
	if = { 
		limit = {  
			has_building = logging_camps_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_logging_camps_01 }
	}
	if = { 
		limit = {  
			has_building = logging_camps_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_logging_camps_02 }
	}
	if = { 
		limit = {  
			has_building = logging_camps_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_logging_camps_03 }
	}
	if = { 
		limit = {  
			has_building = logging_camps_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_logging_camps_04 }
	}
	if = { 
		limit = {  
			has_building = logging_camps_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_logging_camps_05 }
	}
	if = { 
		limit = {  
			has_building = logging_camps_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_logging_camps_06 }
	}
	if = { 
		limit = {  
			has_building = logging_camps_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_logging_camps_07 }
	}
	if = { 
		limit = {  
			has_building = logging_camps_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_logging_camps_08 }
	}
	if = { 
		limit = {  
			has_building = peat_quarries_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_01 }
	}
	if = { 
		limit = {  
			has_building = peat_quarries_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_02 }
	}
	if = { 
		limit = {  
			has_building = peat_quarries_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_03 }
	}
	if = { 
		limit = {  
			has_building = peat_quarries_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_04 }
	}
	if = { 
		limit = {  
			has_building = peat_quarries_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_05 }
	}
	if = { 
		limit = {  
			has_building = peat_quarries_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_06 }
	}
	if = { 
		limit = {  
			has_building = peat_quarries_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_07 }
	}
	if = { 
		limit = {  
			has_building = peat_quarries_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_08 }
	}
	if = { 
		limit = {  
			has_building = hill_farms_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_farms_01 }
	}
	if = { 
		limit = {  
			has_building = hill_farms_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_farms_02 }
	}
	if = { 
		limit = {  
			has_building = hill_farms_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_farms_03 }
	}
	if = { 
		limit = {  
			has_building = hill_farms_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_farms_04 }
	}
	if = { 
		limit = {  
			has_building = hill_farms_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_farms_05 }
	}
	if = { 
		limit = {  
			has_building = hill_farms_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_farms_06 }
	}
	if = { 
		limit = {  
			has_building = hill_farms_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_farms_07 }
	}
	if = { 
		limit = {  
			has_building = hill_farms_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_farms_08 }
	}
	if = { 
		limit = {  
			has_building = elephant_pens_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_01 }
	}
	if = { 
		limit = {  
			has_building = elephant_pens_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_02 }
	}
	if = { 
		limit = {  
			has_building = elephant_pens_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_03 }
	}
	if = { 
		limit = {  
			has_building = elephant_pens_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_04 }
	}
	if = { 
		limit = {  
			has_building = elephant_pens_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_05 }
	}
	if = { 
		limit = {  
			has_building = elephant_pens_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_06 }
	}
	if = { 
		limit = {  
			has_building = elephant_pens_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_07 }
	}
	if = { 
		limit = {  
			has_building = elephant_pens_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_08 }
	}
	if = { 
		limit = {  
			has_building = plantations_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_plantations_01 }
	}
	if = { 
		limit = {  
			has_building = plantations_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_plantations_02 }
	}
	if = { 
		limit = {  
			has_building = plantations_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_plantations_03 }
	}
	if = { 
		limit = {  
			has_building = plantations_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_plantations_04 }
	}
	if = { 
		limit = {  
			has_building = plantations_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_plantations_05 }
	}
	if = { 
		limit = {  
			has_building = plantations_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_plantations_06 }
	}
	if = { 
		limit = {  
			has_building = plantations_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_plantations_07 }
	}
	if = { 
		limit = {  
			has_building = plantations_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_plantations_08 }
	}
	if = { 
		limit = {  
			has_building = quarries_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_quarries_01 }
	}
	if = { 
		limit = {  
			has_building = quarries_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_quarries_02 }
	}
	if = { 
		limit = {  
			has_building = quarries_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_quarries_03 }
	}
	if = { 
		limit = {  
			has_building = quarries_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_quarries_04 }
	}
	if = { 
		limit = {  
			has_building = quarries_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_quarries_05 }
	}
	if = { 
		limit = {  
			has_building = quarries_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_quarries_06 }
	}
	if = { 
		limit = {  
			has_building = quarries_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_quarries_07 }
	}
	if = { 
		limit = {  
			has_building = quarries_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_quarries_08 }
	}
	if = { 
		limit = {  
			has_building = hill_forts_01
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_forts_01 }
	}
	if = { 
		limit = {  
			has_building = hill_forts_02
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_forts_02 }
	}
	if = { 
		limit = {  
			has_building = hill_forts_03
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_forts_03 }
	}
	if = { 
		limit = {  
			has_building = hill_forts_04
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_forts_04 }
	}
	if = { 
		limit = {  
			has_building = hill_forts_05
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_forts_05 }
	}
	if = { 
		limit = {  
			has_building = hill_forts_06
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_forts_06 }
	}
	if = { 
		limit = {  
			has_building = hill_forts_07
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_forts_07 }
	}
	if = { 
		limit = {  
			has_building = hill_forts_08
		}
		add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_hill_forts_08 }
	}
	# if = { 
		# limit = {  
			# has_building = military_academy_01
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_academy_01 }
	# }
	# if = { 
		# limit = {  
			# has_building = military_academy_02
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_academy_02 }
	# }
	# if = { 
		# limit = {  
			# has_building = military_academy_03
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_military_academy_03 }
	# }
	# if = { 
		# limit = {  
			# has_building = march_01
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_march_01 }
	# }
	# if = { 
		# limit = {  
			# has_building = march_02
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_march_02 }
	# }
	# if = { 
		# limit = {  
			# has_building = march_03
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_march_03 }
	# }
	# if = { 
		# limit = {  
			# has_building = siege_works_01
		# }
 		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_siege_works_01 }
	# }
	# if = { 
		# limit = {  
			# has_building = siege_works_02
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_siege_works_02 }
	# }
	# if = { 
		# limit = {  
			# has_building = siege_works_03
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_siege_works_03 }
	# }
	# if = { 
		# limit = {  
			# has_building = royal_armory_01
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_royal_armory_01 }
	# }
	# if = { 
		# limit = {  
			# has_building = royal_armory_02
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_royal_armory_02 }
	# }
	# if = { 
		# limit = {  
			# has_building = royal_armory_03
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_royal_armory_03 }
	# }
	# if = { 
		# limit = {  
			# has_building = jousting_lists_01
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_01 }
	# }
	# if = { 
		# limit = {  
			# has_building = jousting_lists_02
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_02 }
	# }
	# if = { 
		# limit = {  
			# has_building = jousting_lists_03
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_03 }
	# }
	# if = { 
		# limit = {  
			# has_building = blacksmiths_01
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_01 }
	# }
	# if = { 
		# limit = {  
			# has_building = blacksmiths_02
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_02 }
	# }
	# if = { 
		# limit = {  
			# has_building = blacksmiths_03
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_03 }
	# }
	# if = { 
		# limit = {  
			# has_building = archery_ranges_01
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_01 }
	# }
	# if = { 
		# limit = {  
			# has_building = archery_ranges_02
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_02 }
	# }
	# if = { 
		# limit = {  
			# has_building = archery_ranges_03
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_03 }
	# }
	# if = { 
		# limit = {  
			# has_building = tax_assessor_01
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_01 }
	# }
	# if = { 
		# limit = {  
			# has_building = tax_assessor_02
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_02 }
	# }
	# if = { 
		# limit = {  
			# has_building = tax_assessor_03
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_03 }
	# }
	# if = { 
		# limit = {  
			# has_building = leisure_palace_01
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_01 }
	# }
	# if = { 
		# limit = {  
			# has_building = leisure_palace_02
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_02 }
	# }
	# if = { 
		# limit = {  
			# has_building = leisure_palace_03
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_03 }
	# }
	# if = { 
		# limit = {  
			# has_building = royal_forest_01
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_royal_forest_01 }
	# }
	# if = { 
		# limit = {  
			# has_building = royal_forest_02
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_royal_forest_02 }
	# }
	# if = { 
		# limit = {  
			# has_building = royal_forest_03
		# }
		# add_to_local_variable_list  = { name = cow_local_building_level target = flag:flag_cow_royal_forest_03 }
	# }
}

cow_add_building_lvl_effect = {
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_01 } 
		}
		add_building = cow_guild_halls_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_guild_halls_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_02 } 
		}
		add_building = cow_guild_halls_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_guild_halls_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_03 } 
		}
		add_building = cow_guild_halls_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_guild_halls_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_04 } 
		}
		add_building = cow_guild_halls_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_guild_halls_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_05 } 
		}
		add_building = cow_guild_halls_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_guild_halls_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_06 } 
		}
		add_building = cow_guild_halls_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_guild_halls_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_07 } 
		}
		add_building = cow_guild_halls_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_guild_halls_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_guild_halls_08 } 
		}
		add_building = cow_guild_halls_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_guild_halls_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_01 } 
		}
		add_building = cow_common_tradeport_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_02 } 
		}
		add_building = cow_common_tradeport_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_03 } 
		}
		add_building = cow_common_tradeport_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_04 } 
		}
		add_building = cow_common_tradeport_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_05 } 
		}
		add_building = cow_common_tradeport_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_06 } 
		}
		add_building = cow_common_tradeport_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_07 } 
		}
		add_building = cow_common_tradeport_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_08 } 
		}
		add_building = cow_common_tradeport_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_common_tradeport_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_01 } 
		}
		add_building = cow_pastures_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_pastures_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_02 } 
		}
		add_building = cow_pastures_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_pastures_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_03 } 
		}
		add_building = cow_pastures_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_pastures_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_04 } 
		}
		add_building = cow_pastures_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_pastures_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_05 } 
		}
		add_building = cow_pastures_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_pastures_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_06 } 
		}
		add_building = cow_pastures_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_pastures_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_07 } 
		}
		add_building = cow_pastures_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_pastures_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_pastures_08 } 
		}
		add_building = cow_pastures_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_pastures_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_01 } 
		}
		add_building = cow_hunting_grounds_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_02 } 
		}
		add_building = cow_hunting_grounds_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_03 } 
		}
		add_building = cow_hunting_grounds_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_04 } 
		}
		add_building = cow_hunting_grounds_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_05 } 
		}
		add_building = cow_hunting_grounds_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_06 } 
		}
		add_building = cow_hunting_grounds_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_07 } 
		}
		add_building = cow_hunting_grounds_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_08 } 
		}
		add_building = cow_hunting_grounds_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hunting_grounds_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_01 } 
		}
		add_building = cow_orchards_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_orchards_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_02 } 
		}
		add_building = cow_orchards_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_orchards_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_03 } 
		}
		add_building = cow_orchards_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_orchards_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_04 } 
		}
		add_building = cow_orchards_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_orchards_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_05 } 
		}
		add_building = cow_orchards_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_orchards_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_06 } 
		}
		add_building = cow_orchards_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_orchards_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_07 } 
		}
		add_building = cow_orchards_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_orchards_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_orchards_08 } 
		}
		add_building = cow_orchards_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_orchards_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_01 } 
		}
		add_building = cow_farm_estates_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_farm_estates_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_02 } 
		}
		add_building = cow_farm_estates_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_farm_estates_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_03 } 
		}
		add_building = cow_farm_estates_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_farm_estates_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_04 } 
		}
		add_building = cow_farm_estates_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_farm_estates_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_05 } 
		}
		add_building = cow_farm_estates_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_farm_estates_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_06 } 
		}
		add_building = cow_farm_estates_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_farm_estates_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_07 } 
		}
		add_building = cow_farm_estates_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_farm_estates_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_farm_estates_08 } 
		}
		add_building = cow_farm_estates_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_farm_estates_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_01 } 
		}
		add_building = cow_military_camps_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_camps_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_02 } 
		}
		add_building = cow_military_camps_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_camps_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_03 } 
		}
		add_building = cow_military_camps_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_camps_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_04 } 
		}
		add_building = cow_military_camps_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_camps_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_05 } 
		}
		add_building = cow_military_camps_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_camps_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_06 } 
		}
		add_building = cow_military_camps_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_camps_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_07 } 
		}
		add_building = cow_military_camps_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_camps_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_camps_08 } 
		}
		add_building = cow_military_camps_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_camps_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_01 } 
		}
		add_building = cow_regimental_grounds_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_02 } 
		}
		add_building = cow_regimental_grounds_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_03 } 
		}
		add_building = cow_regimental_grounds_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_04 } 
		}
		add_building = cow_regimental_grounds_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_05 } 
		}
		add_building = cow_regimental_grounds_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_06 } 
		}
		add_building = cow_regimental_grounds_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_07 } 
		}
		add_building = cow_regimental_grounds_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_08 } 
		}
		add_building = cow_regimental_grounds_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_regimental_grounds_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_01 } 
		}
		add_building = cow_ramparts_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_ramparts_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_02 } 
		}
		add_building = cow_ramparts_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_ramparts_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_03 } 
		}
		add_building = cow_ramparts_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_ramparts_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_04 } 
		}
		add_building = cow_ramparts_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_ramparts_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_05 } 
		}
		add_building = cow_ramparts_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_ramparts_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_06 } 
		}
		add_building = cow_ramparts_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_ramparts_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_07 } 
		}
		add_building = cow_ramparts_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_ramparts_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_ramparts_08 } 
		}
		add_building = cow_ramparts_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_ramparts_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_01 } 
		}
		add_building = cow_curtain_walls_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_02 } 
		}
		add_building = cow_curtain_walls_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_03 } 
		}
		add_building = cow_curtain_walls_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_04 } 
		}
		add_building = cow_curtain_walls_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_05 } 
		}
		add_building = cow_curtain_walls_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_06 } 
		}
		add_building = cow_curtain_walls_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_07 } 
		}
		add_building = cow_curtain_walls_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_08 } 
		}
		add_building = cow_curtain_walls_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_curtain_walls_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_01 } 
		}
		add_building = cow_watchtowers_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_watchtowers_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_02 } 
		}
		add_building = cow_watchtowers_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_watchtowers_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_03 } 
		}
		add_building = cow_watchtowers_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_watchtowers_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_04 } 
		}
		add_building = cow_watchtowers_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_watchtowers_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_05 } 
		}
		add_building = cow_watchtowers_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_watchtowers_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_06 } 
		}
		add_building = cow_watchtowers_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_watchtowers_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_07 } 
		}
		add_building = cow_watchtowers_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_watchtowers_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_watchtowers_08 } 
		}
		add_building = cow_watchtowers_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_watchtowers_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_01 } 
		}
		add_building = cow_cereal_fields_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_02 } 
		}
		add_building = cow_cereal_fields_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_03 } 
		}
		add_building = cow_cereal_fields_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_04 } 
		}
		add_building = cow_cereal_fields_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_05 } 
		}
		add_building = cow_cereal_fields_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_06 } 
		}
		add_building = cow_cereal_fields_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_07 } 
		}
		add_building = cow_cereal_fields_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_08 } 
		}
		add_building = cow_cereal_fields_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_cereal_fields_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_01 } 
		}
		add_building = cow_outposts_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_outposts_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_02 } 
		}
		add_building = cow_outposts_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_outposts_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_03 } 
		}
		add_building = cow_outposts_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_outposts_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_04 } 
		}
		add_building = cow_outposts_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_outposts_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_05 } 
		}
		add_building = cow_outposts_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_outposts_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_06 } 
		}
		add_building = cow_outposts_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_outposts_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_07 } 
		}
		add_building = cow_outposts_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_outposts_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_outposts_08 } 
		}
		add_building = cow_outposts_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_outposts_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_01 } 
		}
		add_building = cow_barracks_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_barracks_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_02 } 
		}
		add_building = cow_barracks_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_barracks_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_03 } 
		}
		add_building = cow_barracks_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_barracks_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_04 } 
		}
		add_building = cow_barracks_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_barracks_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_05 } 
		}
		add_building = cow_barracks_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_barracks_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_06 } 
		}
		add_building = cow_barracks_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_barracks_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_07 } 
		}
		add_building = cow_barracks_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_barracks_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_barracks_08 } 
		}
		add_building = cow_barracks_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_barracks_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_01 } 
		}
		add_building = cow_camel_farms_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_camel_farms_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_02 } 
		}
		add_building = cow_camel_farms_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_camel_farms_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_03 } 
		}
		add_building = cow_camel_farms_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_camel_farms_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_04 } 
		}
		add_building = cow_camel_farms_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_camel_farms_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_05 } 
		}
		add_building = cow_camel_farms_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_camel_farms_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_06 } 
		}
		add_building = cow_camel_farms_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_camel_farms_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_07 } 
		}
		add_building = cow_camel_farms_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_camel_farms_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_camel_farms_08 } 
		}
		add_building = cow_camel_farms_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_camel_farms_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_01 } 
		}
		add_building = cow_logging_camps_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_logging_camps_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_02 } 
		}
		add_building = cow_logging_camps_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_logging_camps_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_03 } 
		}
		add_building = cow_logging_camps_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_logging_camps_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_04 } 
		}
		add_building = cow_logging_camps_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_logging_camps_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_05 } 
		}
		add_building = cow_logging_camps_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_logging_camps_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_06 } 
		}
		add_building = cow_logging_camps_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_logging_camps_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_07 } 
		}
		add_building = cow_logging_camps_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_logging_camps_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_logging_camps_08 } 
		}
		add_building = cow_logging_camps_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_logging_camps_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_01 } 
		}
		add_building = cow_peat_quarries_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_02 } 
		}
		add_building = cow_peat_quarries_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_03 } 
		}
		add_building = cow_peat_quarries_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_04 } 
		}
		add_building = cow_peat_quarries_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_05 } 
		}
		add_building = cow_peat_quarries_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_06 } 
		}
		add_building = cow_peat_quarries_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_07 } 
		}
		add_building = cow_peat_quarries_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_08 } 
		}
		add_building = cow_peat_quarries_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_peat_quarries_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_01 } 
		}
		add_building = cow_hill_farms_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_farms_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_02 } 
		}
		add_building = cow_hill_farms_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_farms_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_03 } 
		}
		add_building = cow_hill_farms_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_farms_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_04 } 
		}
		add_building = cow_hill_farms_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_farms_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_05 } 
		}
		add_building = cow_hill_farms_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_farms_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_06 } 
		}
		add_building = cow_hill_farms_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_farms_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_07 } 
		}
		add_building = cow_hill_farms_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_farms_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_farms_08 } 
		}
		add_building = cow_hill_farms_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_farms_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_01 } 
		}
		add_building = cow_elephant_pens_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_02 } 
		}
		add_building = cow_elephant_pens_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_03 } 
		}
		add_building = cow_elephant_pens_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_04 } 
		}
		add_building = cow_elephant_pens_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_05 } 
		}
		add_building = cow_elephant_pens_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_06 } 
		}
		add_building = cow_elephant_pens_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_07 } 
		}
		add_building = cow_elephant_pens_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_08 } 
		}
		add_building = cow_elephant_pens_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_elephant_pens_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_01 } 
		}
		add_building = cow_plantations_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_plantations_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_02 } 
		}
		add_building = cow_plantations_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_plantations_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_03 } 
		}
		add_building = cow_plantations_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_plantations_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_04 } 
		}
		add_building = cow_plantations_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_plantations_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_05 } 
		}
		add_building = cow_plantations_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_plantations_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_06 } 
		}
		add_building = cow_plantations_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_plantations_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_07 } 
		}
		add_building = cow_plantations_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_plantations_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_plantations_08 } 
		}
		add_building = cow_plantations_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_plantations_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_01 } 
		}
		add_building = cow_quarries_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_quarries_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_02 } 
		}
		add_building = cow_quarries_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_quarries_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_03 } 
		}
		add_building = cow_quarries_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_quarries_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_04 } 
		}
		add_building = cow_quarries_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_quarries_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_05 } 
		}
		add_building = cow_quarries_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_quarries_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_06 } 
		}
		add_building = cow_quarries_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_quarries_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_07 } 
		}
		add_building = cow_quarries_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_quarries_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_quarries_08 } 
		}
		add_building = cow_quarries_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_quarries_08 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_01 } 
		}
		add_building = cow_hill_forts_01
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_forts_01 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_02 } 
		}
		add_building = cow_hill_forts_02
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_forts_02 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_03 } 
		}
		add_building = cow_hill_forts_03
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_forts_03 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_04 } 
		}
		add_building = cow_hill_forts_04
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_forts_04 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_05 } 
		}
		add_building = cow_hill_forts_05
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_forts_05 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_06 } 
		}
		add_building = cow_hill_forts_06
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_forts_06 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_07 } 
		}
		add_building = cow_hill_forts_07
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_forts_07 } 
	}
	if = { 
		limit = {  
			is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_hill_forts_08 } 
		}
		add_building = cow_hill_forts_08
		remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_hill_forts_08 } 
	}
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_academy_01 } 
		# }
		# add_building = cow_military_academy_01
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_academy_01 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_academy_02 } 
		# }
		# add_building = cow_military_academy_02
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_academy_02 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_military_academy_03 } 
		# }
		# add_building = cow_military_academy_03
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_military_academy_03 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_march_01 } 
		# }
		# add_building = cow_march_01
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_march_01 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_march_02 } 
		# }
		# add_building = cow_march_02
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_march_02 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_march_03 } 
		# }
		# add_building = cow_march_03
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_march_03 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_siege_works_01 } 
		# }
		# add_building = cow_siege_works_01
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_siege_works_01 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_siege_works_02 } 
		# }
		# add_building = cow_siege_works_02
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_siege_works_02 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_siege_works_03 } 
		# }
		# add_building = cow_siege_works_03
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_siege_works_03 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_armory_01 } 
		# }
		# add_building = cow_royal_armory_01
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_royal_armory_01 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_armory_02 } 
		# }
		# add_building = cow_royal_armory_02
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_royal_armory_02 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_armory_03 } 
		# }
		# add_building = cow_royal_armory_03
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_royal_armory_03 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_01 } 
		# }
		# add_building = cow_jousting_lists_01
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_01 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_02 } 
		# }
		# add_building = cow_jousting_lists_02
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_02 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_03 } 
		# }
		# add_building = cow_jousting_lists_03
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_jousting_lists_03 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_01 } 
		# }
		# add_building = cow_blacksmiths_01
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_01 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_02 } 
		# }
		# add_building = cow_blacksmiths_02
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_02 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_03 } 
		# }
		# add_building = cow_blacksmiths_03
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_blacksmiths_03 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_01 } 
		# }
		# add_building = cow_archery_ranges_01
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_01 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_02 } 
		# }
		# add_building = cow_archery_ranges_02
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_02 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_03 } 
		# }
		# add_building = cow_archery_ranges_03
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_archery_ranges_03 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_01 } 
		# }
		# add_building = cow_tax_assessor_01
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_01 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_02 } 
		# }
		# add_building = cow_tax_assessor_02
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_02 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_03 } 
		# }
		# add_building = cow_tax_assessor_03
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_tax_assessor_03 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_01 } 
		# }
		# add_building = cow_leisure_palace_01
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_01 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_02 } 
		# }
		# add_building = cow_leisure_palace_02
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_02 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_03 } 
		# }
		# add_building = cow_leisure_palace_03
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_leisure_palace_03 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_forest_01 } 
		# }
		# add_building = cow_royal_forest_01
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_royal_forest_01 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_forest_02 } 
		# }
		# add_building = cow_royal_forest_02
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_royal_forest_02 } 
	# }
	# if = { 
		# limit = {  
			# is_target_in_local_variable_list = { name = cow_local_building_level target = flag:flag_cow_royal_forest_03 } 
		# }
		# add_building = cow_royal_forest_03
		# remove_list_local_variable = { name = cow_local_building_level target = flag:flag_cow_royal_forest_03 } 
	# }
}
