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 HideJetpackVfx v1.0.2
HideJetpackVfx.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using EntityStates; using EntityStates.Mage; using HG.Reflection; using Microsoft.CodeAnalysis; using On.EntityStates.Mage; using RoR2; using UnityEngine; using UnityEngine.AddressableAssets; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: OptIn] [assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] [assembly: AssemblyCompany("HideJetpackVfx")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("HideJetpackVfx")] [assembly: AssemblyTitle("HideJetpackVfx")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] [module: UnverifiableCode] 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 HideJetpackVfx { [BepInPlugin("pseudopulse.HideJetpackVfx", "HideJetpackVfx", "1.0.1")] public class HideJetpackVfx : BaseUnityPlugin { public const string PluginGUID = "pseudopulse.HideJetpackVfx"; public const string PluginAuthor = "pseudopulse"; public const string PluginName = "HideJetpackVfx"; public const string PluginVersion = "1.0.1"; public static AssetBundle bundle; public static ManualLogSource ModLogger; public static SkinDef DefaultArti; public static SkinDef MasteryArti; public void Awake() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Expected O, but got Unknown ModLogger = ((BaseUnityPlugin)this).Logger; DefaultArti = Addressables.LoadAssetAsync<SkinDef>((object)"RoR2/Base/Mage/skinMageDefault.asset").WaitForCompletion(); MasteryArti = Addressables.LoadAssetAsync<SkinDef>((object)"RoR2/Base/Mage/skinMageAlt.asset").WaitForCompletion(); JetpackOn.OnEnter += new hook_OnEnter(JetpackPatch); } public void JetpackPatch(orig_OnEnter orig, JetpackOn self) { orig.Invoke(self); if (Object.op_Implicit((Object)(object)self.jetOnEffect) && !HasValidSkin(((EntityState)self).gameObject)) { ((Component)self.jetOnEffect).gameObject.SetActive(false); } } public bool HasValidSkin(GameObject obj) { SkinDef val = SkinCatalog.FindCurrentSkinDefForBodyInstance(obj); return (Object)(object)val == (Object)(object)DefaultArti || (Object)(object)val == (Object)(object)MasteryArti; } } }