using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using BepInEx; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("StickFightTheGameMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("StickFightTheGameMod")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("07ad7751-658e-41ea-b1ee-8a7e59ffbe73")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.0.0")] namespace StickMode; [BepInPlugin("bayturtleking.stickfight.actuallysticks", "Actually Sticks", "1.0.0")] public class stickstickmod : BaseUnityPlugin { private Harmony harmony; private void Awake() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Expected O, but got Unknown harmony = new Harmony("bayturtleking.stickfight.actuallysticks"); harmony.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"bayturtle's silly stick mod loaded"); } private void OnDestroy() { Harmony obj = harmony; if (obj != null) { obj.UnpatchSelf(); } } } [HarmonyPatch(typeof(CharacterInformation), "Start")] public static class oneofussticks { private static readonly Color brownbecausetwigsarebrown = new Color(0.45f, 0.29f, 0.15f, 1f); private static void Postfix(CharacterInformation __instance) { //IL_009e: Unknown result type (might be due to invalid IL or missing references) GameObject gameObject = ((Component)__instance).gameObject; LineRenderer[] componentsInChildren = gameObject.GetComponentsInChildren(true); foreach (LineRenderer val in componentsInChildren) { if (!(((Object)((Component)val).gameObject).name == "spineRenderer") || !((Object)(object)((Component)val).transform.parent != (Object)null) || !(((Object)((Component)val).transform.parent).name == "Renderers")) { ((Renderer)val).enabled = false; } } SpriteRenderer[] componentsInChildren2 = gameObject.GetComponentsInChildren(true); foreach (SpriteRenderer val2 in componentsInChildren2) { if (((Component)((Component)val2).transform).tag != "DontChangeColor") { val2.color = brownbecausetwigsarebrown; } } } } [HarmonyPatch(typeof(SetLinePositions), "Update")] public static class youcantleaveonceyoujointhesticks { private static void Postfix(SetLinePositions __instance) { //IL_0083: Unknown result type (might be due to invalid IL or missing references) LineRenderer component = ((Component)__instance).GetComponent(); if (!((Object)(object)component == (Object)null)) { if (!(((Object)((Component)__instance).gameObject).name == "spineRenderer") || !((Object)(object)((Component)__instance).transform.parent != (Object)null) || !(((Object)((Component)__instance).transform.parent).name == "Renderers")) { ((Renderer)component).enabled = false; return; } ((Renderer)component).enabled = true; ((Renderer)component).material.color = new Color(0.45f, 0.29f, 0.15f, 1f); } } }