#
# These define the type of bypasses that exist in game. This is only the logical connection between systems.
# These can be added to megastructures.
#
# bypass_type = {
#	name = GATEWAY_GALACTIC		# the localization key used in triggers and effects for the type
#	is_pathfind = yes			# whether this type can be automatically used by the pathfinding (otherwise you'll have to right click the object containing it)
#	requires_exploration = no	# whether this bypass type needs to be 'seen' before it can be used
#	uses_action = no			# whether this type needs an action or can be used automagically
#	always_active = no			# whether bypasses of these types are automatically active on creation, or if they need to be researched/upgraded to be activated
#	windup_time = 0.0			# days preparing before travel, translated into ticks on load.
#	winddown_time = 0.0			# days preparing after travel, translated into ticks on load.
#	ftl_multiplier = 0			# 0 is supposed to mean instant, WARNING: not implemented correctly.
#	extends_sensors = yes		# whether you can "see through" the bypass and extends your sensor range to the other side
#	icon_frame = 25
#	remember_instances = no	# whether countries remember meeting a specific instance of that type, or if they just remember seeing the type in general
#	galactic_map_tooltip_header=GATEWAY_GALACTIC
#	galactic_map_tooltip_desc=GATEWAY_GALACTIC_DESC
#	connection_type = any_other
#	ftl_ship_effect	= "gateway_ftl_ship_effect_entity"		# what effect to spawn on the ship when they jump through the bypass
#	ftl_bypass_effect	= "gateway_ftl_bypass_effect_entity"	# what effect to spawn on the bypass when a ship jumps through
#	bypass_effect		= ""
#	animation_time = 3				# number of days to wait for the jump animation to be played
#	prerequisites = {
#		tech_gateway_activation
#	}
#	on_pre_explore = {					# an effect that is called just before the jump of a right click "explore" action of a fleet
#
#	}
#	country_can_use = {					# trigger to evaluate if a country can use bypasses of this type. this: country, from: (optional) system owner; default: { always = yes }
#	}
#	on_action = "on_entering_bypass"	# The name of the on-action event that will be fired upon entering FTL (if set)
#										# THIS = Fleet
#										# FROM = System jumping to
#										# FROMFROM = System jumped from
# }

bd_lgate = {
	name = BD_LGATE_GALACTIC
	is_pathfind = yes
	uses_action = no
	always_active = yes
	windup_time = 0
	winddown_time = 0
	ftl_multiplier = 0
	icon_frame = 30
	remember_instances = no
	galactic_map_tooltip_header = BD_LGATE_GALACTIC
	galactic_map_tooltip_desc = BD_LGATE_GALACTIC_DESC
	connection_type = scripted_connection
	animation_time = 1
	ftl_ship_effect = "gateway_ftl_ship_effect_entity"
	ftl_bypass_effect = "gateway_ftl_bypass_effect_entity"
	country_can_use = {
		has_technology = tech_bd_can_active_gate
	}
	
	scripted_connection = {
		node = {
			OR = {
				has_star_flag = bd_watcher_in
				has_star_flag = bd_lgate_base
			}
		}
		nexus = {
			has_star_flag = bd_watcher_out
		}
	}
}