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 HungryCompany v1.1.0
HungryCompany.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("HungryCompany")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("HungryCompany")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("a40c2b89-4314-4a7a-8178-40acde0fb4bd")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace HungryCompany; [BepInPlugin("nihl.HungryCompany", "Hungry Company", "1.0.0.0")] public class HungryCompany : BaseUnityPlugin { private const string modGUID = "nihl.HungryCompany"; private const string modName = "Hungry Company"; private const string modVersion = "1.0.0.0"; private readonly Harmony harmony = new Harmony("nihl.HungryCompany"); internal ManualLogSource MLS; private static HungryCompany instance; private void Awake() { if ((Object)(object)instance == (Object)null) { instance = this; } MLS = Logger.CreateLogSource("nihl.HungryCompany"); MLS.LogInfo((object)"Hungry Company Loaded!"); Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "nihl.HungryCompany"); } } [HarmonyPatch(typeof(DepositItemsDesk))] internal class CompanyPatch { [HarmonyPatch("AnimationGrabPlayer")] [HarmonyPrefix] private static void KillMorePeople(ref DepositItemsDesk __instance, int monsterAnimationID, int playerID) { __instance.currentMood.maxPlayersToKillBeforeSatisfied = 99; } [HarmonyPatch("CollisionDetect")] [HarmonyPostfix] private static void CollisionPatch(ref DepositItemsDesk __instance, int monsterAnimationID) { __instance.monsterAnimations[monsterAnimationID].animatorCollidedOnClient = false; } [HarmonyPatch("CheckAnimationGrabPlayerServerRpc")] [HarmonyPostfix] private static void ServerPatch(ref DepositItemsDesk __instance, int monsterAnimationID, int playerID) { __instance.monsterAnimations[monsterAnimationID].animatorCollidedOnClient = false; } [HarmonyPatch("ConfirmAnimationGrabPlayerClientRpc")] [HarmonyPostfix] private static void ClientPatch(ref DepositItemsDesk __instance, int monsterAnimationID, int playerID) { __instance.monsterAnimations[monsterAnimationID].animatorCollidedOnClient = false; } }