# Fleet scope | see also, is_organic_controllable_ship = { }
fleet_can_be_scrapped = {
	owner = { is_same_value = root }
	is_cloaked = no
	OR = {
		is_ship_class = shipclass_science_ship
		is_ship_class = shipclass_military # excludes Colossi & Star Eaters; includes Titans
		is_ship_class = shipclass_colonizer
		is_ship_class = shipclass_constructor
	}
	NOR = {
		is_ship_size = psionic_avatar
		is_ship_size = corrupted_avatar
		is_ship_size = leviathan_01_elder_tiyanki
		is_ship_size = leviathan_01_voidspawn
		is_ship_size = nanite_space_dragon_baby
		is_ship_size = space_dragon_red
		is_ship_size = space_dragon_baby
		is_ship_size = space_dragon_blue # Shard
		is_ship_size = space_dragon_origin
		is_ship_size = space_dragon_origin_baby
		is_ship_size = stellarite
		is_ship_size = asteroid # Lithoid, reanimated
		is_ship_size = dimensional_horror
		is_ship_size = shroud_manifestation
		is_ship_size = warped_consciousness
		is_ship_size = paladin_ship
		is_reanimated = yes
	}
}

#Country scope
has_active_shroudwalker_divination = {
	count_situation = {
		count > 0
		limit = {
			OR = {
				is_situation_type = divination_locus
				is_situation_type = divination_visitors
			}
		}
	}
}

has_shroudwalker_divination_event = {
	has_active_event = {
		enclave.5000 # "All Too Lucid"
		enclave.5050 # "Shrouded"
		enclave.5500 # "Shattered Frontier" (> 50% progress)
		enclave.5125 # "Floating Parts" (> 10% progress)
		enclave.5150 # Lightshow - anomaly.235 (>10% progress)
		enclave.5155 # Grimacing - anomaly.230 (>10% progress)
		enclave.5160 # Improbable Teapot - anomaly.4060
		enclave.5185 # Terminal Orbit - anomaly.2570 (>15% progress)
		enclave.5180 # The Color of Science - anomaly.6740 (>15% progress)
		enclave.4150 # "Joint Operation: Dismembered Cloud"
		enclave.4151 # "A Most Irritating Envoy"
		enclave.5070 # "Rogue Shaman"
		enclave.5085 # "The Great Schism"
		enclave.5165 # Brain Slug - distar.170
		enclave.5170 # The Doorway - colony.3005
		enclave.5175 # Atmospheric Ecosystem - colony.300
	}
}

has_salvager_event = {
	has_active_event = {
		enclave.305 #GREETINGS
		enclave.310 #SCRAP FLEET
		enclave.315 #THANKS; scrap
		enclave.320 #RECLAIMED VESSEL
		enclave.325 #THANKS FOR PURCHASE (other)
		enclave.330 #SALVAGE WORKS starbase building
		enclave.335 #SALVAGER OVERDRIVE empire modifier
		enclave.340 #SALVAGE COMMISSION
		enclave.341 #THANKS FOR PURCHASE (Salvage Commission)
		enclave.342 #SORRY, NO CAN DO (Salvage Commission)
		enclave.345 #SALVAGER INSIGHT empire modifier
		enclave.350 #Master Salvager
	}
}

has_trader_event = {
	has_active_event = {
		leviathans.102 # introduction (all)
		# Custom diplomacy screens:
		leviathans.105 # XuraCorp menu
		leviathans.157 # XuraCorp (communications refused)
		leviathans.106 # Riggan menu
		leviathans.160 # Riggans (communications refused)
		leviathans.107 # Muutagan menu
		leviathans.163 # Muutagans (communications refused)
		# Hire Official:
		leviathans.123 # XuraCorp
		leviathans.124 # Riggans
		leviathans.125 # Muutagans
		leviathans.126 # XuraCorp (reply/menu)
		leviathans.127 # Riggans (reply/menu)
		leviathans.128 # Muutagans (reply/menu)
		# Strategic resources:
		leviathans.130 # XuraCorp (Exotic Gases)
		leviathans.131 # Riggans (Volatile Motes)
		leviathans.132 # Muutagans (Rare Crystals)
		leviathans.133 # XuraCorp (reply/menu)
		leviathans.134 # Riggans (reply/menu)
		leviathans.135 # Muutagans (reply/menu)
		# Continue trade?
		leviathans.150 # XuraCorp (Exotic Gases)
		leviathans.151 # Riggans (Volatile Motes)
		leviathans.152 # Muutagans (Rare Crystals)
		# Attacked Traders:
		leviathans.156 # XuraCorp
		leviathans.159 # Riggans
		leviathans.162 # Muutagans
	}
}

has_artisan_event = {
	has_active_event = {
		leviathans.295 # Introduction
		leviathans.300 # Main menu
		leviathans.304 # Post-sale thanks
		leviathans.305 # Commission Art Monument
		leviathans.310 # Become a Patron
		leviathans.330 # Commission a Festival
		leviathans.340 # Art College
		leviathans.345 # Ministry of Culture
		# Patronage
		leviathans.313 # Post-sale thanks
		leviathans.315 # Renew Patronage
		leviathans.321
		leviathans.322
		leviathans.323
		leviathans.324
		leviathans.325
		# Festival of Worlds
		leviathans.332 # Post-sale thanks
		leviathans.335
		leviathans.336
		leviathans.337
	}
}

has_curator_event = {
	has_active_event = {
		leviathans.500 # Main menu
		# Post-sale thanks
		leviathans.504
		leviathans.591
		# Curator Insight
		leviathans.507
		leviathans.509
		# Guardian/Leviathan info
		leviathans.508 # Menu
		leviathans.510 # Ether Drake
		leviathans.515 # Enigmatic Fortress
		leviathans.520 # Stellarite
		leviathans.525 # Dimensional Horror
		leviathans.530 # Asteroid Hive
		leviathans.535 # Infinity Machine
		leviathans.540 # Automated Dreadnought
		leviathans.545 # Wraith
		leviathans.550 # Voidspawn
		leviathans.555 # Scavenger Bot
		leviathans.556 # Tiyanki Matriarch
		leviathans.558 # Toxic God
		# Other
		leviathans.511 # Think Tank
		leviathans.590 # Curator Scientist
		leviathans.599 # Intel
		leviathans.600 # Buying an L-Gate Clue
		leviathans.4000 # Infinity Machine epilogue (Pantagruel)
		anomaly.6820 # Abandoned Station anomaly (Giant Alien Arthropoids)
		# Grand Archive Collection rewards
		grand_archive.4105
		grand_archive.4106
		grand_archive.4107
		grand_archive.4121
		leviathans.4100
		leviathans.4105
		leviathans.4106
		leviathans.4107
		leviathans.4110
		leviathans.4111
		leviathans.4112
		leviathans.4115
		leviathans.4116
		leviathans.4117
	}
}

has_champions_forge_event = {
	has_active_event = {
		nomads.100 # Main menu
		nomads.105 # Ignore Diplomacy
		nomads.125 # Combat Briefing Renewal
		nomads.160 # Introduction
	}
}
