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 Hospital Scrap alpha v1.0.5
plugins/hospital scrap/hospitalscrap.dll
Decompiled 2 weeks agousing System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using LethalLib.Modules; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("hospitalscrap")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("hospitalscrap")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("13f02ec8-db61-4e3d-8684-4e11f8002313")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.1", FrameworkDisplayName = ".NET Framework 4.7.1")] [assembly: AssemblyVersion("1.0.0.0")] namespace System.IO { internal class Patch { } } namespace mod2 { [BepInPlugin("moder.hospitalscrap", "Hospital Scrap", "1.0.0.0")] public class Modtwo : BaseUnityPlugin { private const string modGUID = "moder.hospitalscrap"; private const string modName = "Hospital Scrap"; private const string modVersion = "1.0.0.0"; private readonly Harmony harmony = new Harmony("moder.hospitalscrap"); private static Modtwo Instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "greenpillsbundle"); AssetBundle val = AssetBundle.LoadFromFile(text); Item val2 = val.LoadAsset<Item>("Assets/First aid jar/green/greenpills.asset"); NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab); Utilities.FixMixerGroups(val2.spawnPrefab); Items.RegisterScrap(val2, 90, (LevelTypes)(-1)); if ((Object)(object)val2.spawnPrefab == (Object)null) { mls.LogError((object)"Green pills spawn prefab is null!"); return; } TerminalNode val3 = ScriptableObject.CreateInstance<TerminalNode>(); val3.clearPreviousText = true; val3.displayText = "this green pills \n\n"; Items.RegisterShopItem(val2, (TerminalNode)null, (TerminalNode)null, val3, 50); string text2 = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "redipellsbundle"); AssetBundle val4 = AssetBundle.LoadFromFile(text2); Item val5 = val4.LoadAsset<Item>("Assets/First aid jar/Prefabs/redpills.asset"); NetworkPrefabs.RegisterNetworkPrefab(val5.spawnPrefab); Utilities.FixMixerGroups(val5.spawnPrefab); Items.RegisterScrap(val5, 60, (LevelTypes)(-1)); if ((Object)(object)val5.spawnPrefab == (Object)null) { mls.LogError((object)"Red pills spawn prefab is null!"); return; } if ((Object)(object)val == (Object)null) { mls.LogError((object)"Failed to load green pills bundle!"); return; } if ((Object)(object)val4 == (Object)null) { mls.LogError((object)"Failed to load red pills bundle!"); return; } val.LoadAsset<Item>("Assets/First aid jar/green/greenpills.asset"); if ((Object)(object)val2 == (Object)null) { mls.LogError((object)"Failed to load green pills asset!"); return; } val4.LoadAsset<Item>("Assets/First aid jar/Prefabs/redpills.asset"); if ((Object)(object)val5 == (Object)null) { mls.LogError((object)"Failed to load red pills asset!"); return; } TerminalNode val6 = ScriptableObject.CreateInstance<TerminalNode>(); val6.clearPreviousText = true; val6.displayText = "this red pills \n\n"; Items.RegisterShopItem(val5, (TerminalNode)null, (TerminalNode)null, val6, 10); mls = Logger.CreateLogSource("moder.hospitalscrap"); mls.LogInfo((object)"red pills loaded!!"); harmony.PatchAll(typeof(Modtwo)); } } }