INJECT:law_industry_banned = {
	on_activate = {
		custom_tooltip = industry_banned_tt
		custom_tooltip = {
			text = industry_banned_destroy_tt
			every_scope_state = {
				if = {
					limit = {
						has_building = building_chemical_plant
					}
					remove_building = building_chemical_plant
				}
				if = {
					limit = {
						has_building = building_synthetics_plant
					}
					remove_building = building_synthetics_plant
				}
				if = {
					limit = {
						has_building = building_steel_mill
					}
					remove_building = building_steel_mill
				}
				if = {
					limit = {
						has_building = building_power_plant
					}
					remove_building = building_power_plant
				}
				if = {
					limit = {
						has_building = building_motor_industry
					}
					remove_building = building_motor_industry
				}
				if = {
					limit = {
						has_building = building_automotive_industry
					}
					remove_building = building_automotive_industry
				}
				if = {
					limit = {
						has_building = building_electrics_industry
					}
					remove_building = building_electrics_industry
				}
				if = {
					limit = {
						has_building = building_munition_plant
					}
					remove_building = building_munition_plant
				}
				if = {
					limit = {
						has_building = building_alloys_plant
					}
					remove_building = building_alloys_plant
				}
				if = {
					limit = {
						has_building = building_mendelejew_synthetic_rubber_factory
					}
					remove_building = building_mendelejew_synthetic_rubber_factory
				}
				if = {
					limit = {
						has_building = building_mendelejew_hydrogenation_plants
					}
					remove_building = building_mendelejew_hydrogenation_plants
				}
				if = {
					limit = {
						has_building = building_electronics_industry
					}
					remove_building = building_electronics_industry
				}
				if = {
					limit = {
						has_building = building_battery_plant
					}
					remove_building = building_battery_plant
				}
				if = {
					limit = {
						has_building = building_processors_foundry
					}
					remove_building = building_processors_foundry
				}
				if = {
					limit = {
						has_building = building_computer_assembly_plant
					}
					remove_building = building_computer_assembly_plant
				}
				if = {
					limit = {
						has_building = building_computer_assembly_plant
					}
					remove_building = building_computer_assembly_plant
				}
				if = {
					limit = {
						has_building = building_aircraft_industry
					}
					remove_building = building_aircraft_industry
				}
				if = {
					limit = {
						has_building = building_ecommerce_logistics
					}
					remove_building = building_aircraft_industry
				}
			}
		}
	}
}

INJECT:law_extraction_economy = {
	on_activate = {
		custom_tooltip = industry_banned_tt
		custom_tooltip = {
			text = industry_banned_destroy_tt
			every_scope_state = {
				if = {
					limit = {
						has_building = building_chemical_plant
					}
					remove_building = building_chemical_plant
				}
				if = {
					limit = {
						has_building = building_synthetics_plant
					}
					remove_building = building_synthetics_plant
				}
				if = {
					limit = {
						has_building = building_steel_mill
					}
					remove_building = building_steel_mill
				}
				if = {
					limit = {
						has_building = building_motor_industry
					}
					remove_building = building_motor_industry
				}
				if = {
					limit = {
						has_building = building_automotive_industry
					}
					remove_building = building_automotive_industry
				}
				if = {
					limit = {
						has_building = building_electrics_industry
					}
					remove_building = building_electrics_industry
				}
				if = {
					limit = {
						has_building = building_munition_plant
					}
					remove_building = building_munition_plant
				}
				if = {
					limit = {
						has_building = building_alloys_plant
					}
					remove_building = building_alloys_plant
				}
				if = {
					limit = {
						has_building = building_mendelejew_synthetic_rubber_factory
					}
					remove_building = building_mendelejew_synthetic_rubber_factory
				}
				if = {
					limit = {
						has_building = building_mendelejew_hydrogenation_plants
					}
					remove_building = building_mendelejew_hydrogenation_plants
				}
				if = {
					limit = {
						has_building = building_electronics_industry
					}
					remove_building = building_electronics_industry
				}
				if = {
					limit = {
						has_building = building_battery_plant
					}
					remove_building = building_battery_plant
				}
				if = {
					limit = {
						has_building = building_processors_foundry
					}
					remove_building = building_processors_foundry
				}
				if = {
					limit = {
						has_building = building_aircraft_industry
					}
					remove_building = building_aircraft_industry
				}
				if = {
					limit = {
						has_building = building_ecommerce_logistics
					}
					remove_building = building_aircraft_industry
				}
			}
		}
	}
}