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 HiddenItems v1.0.0
plugins/Dododonut.HiddenItems/HiddenItems.dll
Decompiled 2 days 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 Microsoft.CodeAnalysis; using On.RoR2; 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: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("HiddenItems")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("HiddenItems")] [assembly: AssemblyTitle("HiddenItems")] [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 HiddenItems { [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInPlugin("Dododonut.Hiddenitems", "Hiddenitems", "1.0.0")] public class HiddenItems : BaseUnityPlugin { public const string PluginGUID = "Dododonut.Hiddenitems"; public const string PluginAuthor = "Dododonut"; public const string PluginName = "Hiddenitems"; public const string PluginVersion = "1.0.0"; public void Awake() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0024: Expected O, but got Unknown ItemCatalog.SetItemDefs += new hook_SetItemDefs(ItemCatalogOnSetItemDefs); EquipmentCatalog.SetEquipmentDefs += new hook_SetEquipmentDefs(EquipmentCatalogOnSetEquipmentDefs); } private void ItemCatalogOnSetItemDefs(orig_SetItemDefs orig, ItemDef[] newItemDefs) { //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0013: 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) for (int i = 0; i < newItemDefs.Length; i++) { newItemDefs[i].pickupIconSprite = Addressables.LoadAssetAsync<Sprite>((object)"RoR2/Base/Common/MiscIcons/texMysteryIcon.png").WaitForCompletion(); newItemDefs[i].pickupModelPrefab = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/Mystery/PickupMystery.prefab").WaitForCompletion(); newItemDefs[i].nameToken = "???"; newItemDefs[i].pickupToken = "You can't tell what this is..."; newItemDefs[i].descriptionToken = "You can't tell what this does..."; newItemDefs[i].loreToken = "You don't know what this is..."; } orig.Invoke(newItemDefs); } private void EquipmentCatalogOnSetEquipmentDefs(orig_SetEquipmentDefs orig, EquipmentDef[] newEquipmentDefs) { //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0013: 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) for (int i = 0; i < newEquipmentDefs.Length; i++) { newEquipmentDefs[i].pickupIconSprite = Addressables.LoadAssetAsync<Sprite>((object)"RoR2/Base/Common/MiscIcons/texMysteryIcon.png").WaitForCompletion(); newEquipmentDefs[i].pickupModelPrefab = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/Mystery/PickupMystery.prefab").WaitForCompletion(); newEquipmentDefs[i].nameToken = "???"; newEquipmentDefs[i].pickupToken = "You can't tell what this is..."; newEquipmentDefs[i].descriptionToken = "You can't tell what this does..."; newEquipmentDefs[i].loreToken = "You don't know what this is..."; } orig.Invoke(newEquipmentDefs); } } }