using Verse;
namespace BlaxDefaults
{
///
/// Shared mod detection. Defaults has no hard dependency on any other mod. Package ids of the mods
/// whose defaults overlap live next to their warning (OverlapWarnings); the ones here are siblings and
/// the mods the -Compat run loads, read from the installed copies' About/About.xml on 2026-11-29.
///
public static class Compat
{
public const string BlaxCastes = "blax.castes";
public const string BlaxSlaves = "blax.slaves";
public const string BlaxZones = "blax.zones";
public const string RimFridge = "rimfridge.kv.rw";
public const string WeaponRacks = "Aelanna.WeaponRacks";
public const string ReplaceStuff = "Memegoddess.ReplaceStuff";
public const string Rimefeller = "Dubwise.Rimefeller";
public const string VfeSecurity = "VanillaExpanded.VFESecurity";
///
/// Active by packageId, local or Steam copy. ModsConfig.IsActive misses a mod that is installed both
/// ways (the Steam copy gets a "_steam" postfix), so nothing in Blax Defaults uses it for mods.
///
public static bool IsActive(string packageId) => ModLister.GetActiveModWithIdentifier(packageId, ignorePostfix: true) != null;
}
}