oeo_mega_recycler_ruined = {
    entity = "salvager_station_01_destroyed_entity"
	construction_entity = "salvager_station_01_destroyed_entity"
	place_entity_on_planet_plane = no
	build_outside_gravity_well = no
	use_planet_resource = no
	build_time = 0
	entity_offset = { x = 10 y = -20 }
	show_in_outliner = yes
	construction_blocks_and_blocked_by = none

	dismantle_potential = {
		always = no
	}
	potential = {
		always = no
	}
	possible = {}
	placement_rules = {}
	ai_weight = {}
	
	on_build_start = {}
	on_build_cancel = {}
	on_build_complete = {
		fromfrom.planet = {
			set_planet_flag = has_megastructure
			set_planet_flag = megastructure
			if = {
				limit = { has_orbital_station = yes }
				orbital_station = {
					dismantle = yes
				}
			}	
		}	
	}
}
oeo_mega_recycler_restored = {
    entity = "salvager_station_01_entity"
	construction_entity = "salvager_station_01_entity"
	portrait = "GFX_oeo_recycler"
	place_entity_on_planet_plane = no
	build_outside_gravity_well = no
	use_planet_resource = no
	entity_offset = { x = 10 y = -20 }
	outliner_trigger = {
		exists = owner
		owner = {
			NOT = { has_country_flag = oeo_recycler_outliner}
		}
	}
	construction_blocks_and_blocked_by = none
	potential = { }
	build_time = 3600
	upgrade_from = {
		oeo_mega_recycler_ruined
	}
	resources = {
		category = megastructures
		cost = {
			unity = 5000
		}
		upkeep = {	
			energy = 100
		}
		cost = {
			trigger = {
				country_uses_bio_ships = no
			}
			alloys = 10000
		}
		cost = {
			trigger = {
				country_uses_bio_ships = yes
			}
			alloys = 10000
			mult = 0.5
		}
		cost = {
			trigger = {
				country_uses_bio_ships = yes
			}
			food = 10000
			mult = @halved_alloy_to_food_cost_ratio
		}
		
	}
	country_modifier = {
		megastructure_dismantle_refund_mult = 0.25
		megastructures_alloys_cost_mult = -0.1
		ships_upkeep_mult = -0.1
	}
	dismantle_potential = {	always = no }
	on_build_start = {}
	on_build_cancel = {}
	on_build_complete = {}
}
