Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of GirlBegone v1.1.1
GirlBegone.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("GirlBegone")] [assembly: AssemblyConfiguration("release")] [assembly: AssemblyDescription("A mod for Lethal Company which removes the Girl from the game")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+fd5da6740465e7a389bd7925b2393172e6aa232e")] [assembly: AssemblyProduct("GirlBegone")] [assembly: AssemblyTitle("GirlBegone")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace GirlBegone { [BepInPlugin("GirlBegone", "GirlBegone", "1.0.0")] public class GirlBegone : BaseUnityPlugin { internal static ManualLogSource Log; private void Awake() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) Log = ((BaseUnityPlugin)this).Logger; new Harmony("GirlBegone").PatchAll(Assembly.GetExecutingAssembly()); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin GirlBegone is loaded!"); } } public static class PluginInfo { public const string PLUGIN_GUID = "GirlBegone"; public const string PLUGIN_NAME = "GirlBegone"; public const string PLUGIN_VERSION = "1.0.0"; } } namespace GirlBegone.Patches { [HarmonyPatch(typeof(DressGirlAI))] internal class DressGirlAIPatch { [HarmonyPatch(typeof(DressGirlAI), "Start")] [HarmonyPostfix] private static void fuckGirlPatch(DressGirlAI __instance) { ((EnemyAI)__instance).KillEnemyOnOwnerClient(true); GirlBegone.Log.LogInfo((object)"Killed Girl"); } } [HarmonyPatch] internal class RoundManagerPatcher { [HarmonyPostfix] [HarmonyPatch(typeof(RoundManager), "EnemyCannotBeSpawned")] private static void PreventGirlSpawns(RoundManager __instance, ref bool __result, int enemyIndex) { if (__instance.currentLevel.Enemies[enemyIndex].enemyType.enemyName.ToLower().Contains("girl")) { GirlBegone.Log.LogInfo((object)"Prevented girl spawn."); __result = true; } } } }