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 Frenchthrix v1.0.0
Frenchthrix.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("Frenchthrix")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("Frenchthrix")] [assembly: AssemblyTitle("Frenchthrix")] [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 Frenchthrix { [BepInPlugin("com.Nuxlar.Frenchthrix", "Frenchthrix", "1.0.0")] public class Frenchthrix : BaseUnityPlugin { public AssetBundleCreateRequest frenchthrixAssets; private GameObject croissant; private GameObject mustache; public void Awake() { //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Expected O, but got Unknown frenchthrixAssets = AssetBundle.LoadFromFileAsync(Path.Combine(Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location), "frenchthrix.bundle")); ref GameObject reference = ref croissant; Object asset = frenchthrixAssets.assetBundle.LoadAssetAsync<GameObject>("assets/croissant.prefab").asset; reference = (GameObject)(object)((asset is GameObject) ? asset : null); ref GameObject reference2 = ref mustache; Object asset2 = frenchthrixAssets.assetBundle.LoadAssetAsync<GameObject>("assets/mustache.prefab").asset; reference2 = (GameObject)(object)((asset2 is GameObject) ? asset2 : null); CharacterMaster.OnBodyStart += new hook_OnBodyStart(Frenchify); } private void Frenchify(orig_OnBodyStart orig, CharacterMaster self, CharacterBody body) { //IL_009f: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) //IL_00dc: Unknown result type (might be due to invalid IL or missing references) //IL_00fb: Unknown result type (might be due to invalid IL or missing references) //IL_0119: 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; GameObject obj = Object.Instantiate<GameObject>(mustache, gameObject.transform.GetChild(0).GetChild(0).GetChild(1) .GetChild(3) .GetChild(0) .GetChild(2) .GetChild(0)); GameObject obj2 = Object.Instantiate<GameObject>(croissant, gameObject.transform.GetChild(0).GetChild(0).GetChild(0)); obj2.transform.localPosition = new Vector3(0f, -0.35f, 0f); obj2.transform.localScale = new Vector3(16f, 16f, 16f); obj2.transform.localRotation = Quaternion.Euler(0f, 180f, 180f); obj.transform.localPosition = new Vector3(0f, -0.15f, 0.15f); obj.transform.localScale = new Vector3(1f, 1f, 1f); } } } }