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 JollyMithrix v1.0.1
JollyMithrix.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using Microsoft.CodeAnalysis; using On.RoR2; using RoR2; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] [assembly: AssemblyCompany("JollyMithrix")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("JollyMithrix")] [assembly: AssemblyTitle("JollyMithrix")] [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 JollyMithrix { [BepInPlugin("com.Nuxlar.JollyMithrix", "JollyMithrix", "1.0.1")] public class JollyMithrix : BaseUnityPlugin { public AssetBundleCreateRequest jollyMithrixAssets; private GameObject jollyHat; private GameObject candyCane; public void Awake() { //IL_002c: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Expected O, but got Unknown jollyMithrixAssets = AssetBundle.LoadFromFileAsync(Path.Combine(Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location), "tmassetbundle.bundle")); CharacterMaster.OnBodyStart += new hook_OnBodyStart(CharacterMaster_OnBodyStart); ref GameObject reference = ref jollyHat; Object asset = jollyMithrixAssets.assetBundle.LoadAssetAsync<GameObject>("jollyHat").asset; reference = (GameObject)(object)((asset is GameObject) ? asset : null); ref GameObject reference2 = ref candyCane; Object asset2 = jollyMithrixAssets.assetBundle.LoadAssetAsync<GameObject>("candyCane").asset; reference2 = (GameObject)(object)((asset2 is GameObject) ? asset2 : null); } private void CharacterMaster_OnBodyStart(orig_OnBodyStart orig, CharacterMaster self, CharacterBody body) { //IL_00b8: Unknown result type (might be due to invalid IL or missing references) //IL_00d6: Unknown result type (might be due to invalid IL or missing references) //IL_00f5: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) orig.Invoke(self, body); if (((Object)body).name == "BrotherBody(Clone)") { GameObject gameObject = ((Component)body.modelLocator.modelTransform).gameObject; ((Component)gameObject.transform.GetChild(3)).gameObject.SetActive(false); GameObject obj = Object.Instantiate<GameObject>(jollyHat, gameObject.transform.GetChild(0).GetChild(0).GetChild(1) .GetChild(3) .GetChild(0) .GetChild(2) .GetChild(0)); GameObject obj2 = Object.Instantiate<GameObject>(candyCane, gameObject.transform.GetChild(0).GetChild(0).GetChild(0)); obj2.transform.localPosition = new Vector3(-0.75f, -0.75f, 0.25f); obj2.transform.localRotation = Quaternion.Euler(0f, 210f, 180f); obj.transform.localPosition = new Vector3(0f, 0.1f, 0f); obj.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f); } } } }