# Checking for mod presence
# These triggers are also meant as a library for modders who want to reuse them in their own mods.
# Modders, favor ID triggers over global flags as they can be detected before game start.
# Also please add a scripted variable to identify your mod, like @mymod = 1

# A Deadly Tempest 2028826064
merg_has_deadly_tempest = { has_global_flag = a_deadly_tempest_mod_active }

# Ancient Cache of Technologies : Secrets Beyond The Gates 1481972266
merg_has_sofe = { has_global_flag = sofe_activated }

# Any fork of Ethics mod
merg_has_any_ethics_mod = { has_global_flag = cultural_overhaul_active }

# Ariphaos Unofficial Patch 1995601384
merg_has_ariphaos_patch = { has_global_flag = ariphaos_unofficial_patch_installed }

# Ascension Enhancements
merg_has_uac = { has_global_flag = has_uac_mod }

# Expanded Events
merg_has_expanded_events = { has_global_flag = expanded_events_active }

# Expanded Megastructures and Technology
merg_has_expanded_megas = { has_global_flag = expanded_megastructures_installed }

# Expanded Stellaris Ascension Perks
merg_has_expanded_stel_perks = { has_global_flag = esap_mod_in_use }

# Expanded Traits, Civics, Pops, and More
merg_has_expanded_pops = { has_global_flag = expanded_pops_active }

# Girls Frontline
merg_has_girls_frontline = { has_global_flag = has_NYTO_mod }

# Lithoid Supremacy
merg_has_lithoid_sup = { has_global_flag = lithoidsupremacy }

# Maiden Frontier Gunstar Story Collection (少女前线群星故事集【正史线：危机联合】)
merg_has_gunstar = { has_global_flag = GF_Stellairs_Crisis_Coalition_Installed }

# Madoka Magicka New
merg_has_madoka = {
	OR = {
		has_global_flag = merg_madoka_detected
		any_country = { has_country_flag = maju_country }
	}
}

# More Corporate Authorities
merg_has_mca = { check_variable = { which = has_more_corporate_authorities value = 1 } }

# More Default Origins
merg_has_more_default_origins = { has_global_flag = wizz_origin_game_started }

# Nirvana Empire Project
merg_has_nirvana_project = { has_global_flag = nirvana_empire_start }

# Real Space
merg_has_real_space = { has_global_flag = has_real_space_mod }

# Real Space New Frontiers
merg_has_real_new_frontiers = { has_global_flag = has_new_frontiers_mod }

# Safety Off
merg_has_safety_off = { has_global_flag = has_pk_safety_off }

# Sensor Expansion
merg_has_sensor_expansion = { has_global_flag = ariphaos_sensors_installed }

# UGRP check
# If true, open the gates of Hell. All of them.
merg_has_ugrp = { UGRC_installed = yes }

# Wula Fallen Empire
merg_has_wula_fe = { wula_fallen_empire_mod_actived = yes }
