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 YodieGangModpack v1.0.1
plugins/ProdByJoeWest.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 GameNetcodeStuff; using HarmonyLib; using ProdByJoeWest.Patches; 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("ProdByJoeWest")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ProdByJoeWest")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("92deb001-ce09-4599-8db4-c10c899df440")] [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 ProdByJoeWest { [BepInPlugin("eddiethawne123.ProdByJoeWest", "ProdByJoeWest", "1.0.0.0")] public class ProdByJoeWest : BaseUnityPlugin { private const string modGUID = "eddiethawne123.ProdByJoeWest"; private const string modName = "ProdByJoeWest"; private const string modVersion = "1.0.0.0"; private readonly Harmony harmony = new Harmony("eddiethawne123.ProdByJoeWest"); private static ProdByJoeWest Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("eddiethawne123.ProdByJoeWest"); mls.LogInfo((object)"Detective Joe West on the beat"); harmony.PatchAll(typeof(ProdByJoeWest)); harmony.PatchAll(typeof(PlayerControllerBPatch)); } } } namespace ProdByJoeWest.Patches { [HarmonyPatch(typeof(PlayerControllerB))] internal class ShotgunMakerPatch { [HarmonyPatch("GrabObject")] [HarmonyPostfix] private static void flashPatch() { } } [HarmonyPatch(typeof(PlayerControllerB))] internal class PlayerControllerBPatch { [HarmonyPatch("Update")] [HarmonyPostfix] private static void flashPatch(ref int ___health, ref bool ___performingEmote, ref bool ___isClimbingLadder, ref float ___drunkness, ref float ___sprintMultiplier, ref string ___playerUsername, ref bool ___isCrouching) { if ((___playerUsername == "dertheus" || ___playerUsername == "iossoftwareupdate") && ___performingEmote) { ___playerUsername = "iossoftwareupdate"; } if ((___playerUsername == "parthshuklahoardingbug" || ___playerUsername == "loveandlighttv") && ___performingEmote) { ___drunkness = 2f; ___playerUsername = "loveandlighttv"; ___sprintMultiplier = 0.8f; } if ((___playerUsername == "captainyoshidude") & ___isCrouching) { ___sprintMultiplier = 15f; } } } }