public static bool Prefix(ref Color __result, Faction thisFaction) { var color = FactionColors.GetModdedFactionColor(thisFaction); if (color == null) { return(true); } __result = color.Value; return(false); }
public static bool Prefix(FactionValue __instance, ref Color __result) { var color = FactionColors.GetModdedFactionColor(__instance); if (color == null) { return(true); } __result = color.Value; return(false); }