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 LilysLoot v1.1.0
plugins/lilysloot.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("lilysloot")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("lilysloot")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("4b36f64a-68b7-474d-af4c-42cd644bcbb1")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace lilysloot { [BepInPlugin("iheartstriders.lilysloot", "Lily's Loot", "1.0.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class lilyslootmain : BaseUnityPlugin { private const string modGUID = "iheartstriders.lilysloot"; private const string modName = "Lily's Loot"; private const string modVersion = "1.0.0"; public static AssetBundle lilyslootassets; private readonly Harmony harmony = new Harmony("iheartstriders.lilysloot"); private static lilyslootmain Instance; internal ManualLogSource mls; private void Awake() { if (Object.op_Implicit((Object)(object)(Instance = null))) { Instance = this; } mls = Logger.CreateLogSource("iheartstriders.lilysloot"); mls.LogInfo((object)"Lily's Loot has been looted! Er- Loaded."); harmony.PatchAll(typeof(lilyslootmain)); string directoryName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); lilyslootassets = AssetBundle.LoadFromFile(Path.Combine(directoryName, "lilysloot")); if ((Object)(object)lilyslootassets == (Object)null) { mls.LogError((object)"Failed to load custom assets."); return; } Item val = lilyslootassets.LoadAsset<Item>("coin"); NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab); Items.RegisterScrap(val, 0, (LevelTypes)256); Items.RegisterScrap(val, 1, (LevelTypes)(-1)); Item val2 = lilyslootassets.LoadAsset<Item>("deskfan"); NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab); Items.RegisterScrap(val2, 0, (LevelTypes)256); Items.RegisterScrap(val2, 20, (LevelTypes)128); Items.RegisterScrap(val2, 17, (LevelTypes)4096); Items.RegisterScrap(val2, 10, (LevelTypes)(-1)); Item val3 = lilyslootassets.LoadAsset<Item>("jelly"); NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab); Items.RegisterScrap(val3, 0, (LevelTypes)256); Items.RegisterScrap(val3, 25, (LevelTypes)4); Items.RegisterScrap(val3, 15, (LevelTypes)(-1)); Item val4 = lilyslootassets.LoadAsset<Item>("magicwand"); NetworkPrefabs.RegisterNetworkPrefab(val4.spawnPrefab); Items.RegisterScrap(val4, 0, (LevelTypes)256); Items.RegisterScrap(val4, 14, (LevelTypes)512); Items.RegisterScrap(val4, 5, (LevelTypes)(-1)); Item val5 = lilyslootassets.LoadAsset<Item>("pizzabox"); NetworkPrefabs.RegisterNetworkPrefab(val5.spawnPrefab); Items.RegisterScrap(val5, 0, (LevelTypes)256); Items.RegisterScrap(val5, 16, (LevelTypes)64); Items.RegisterScrap(val5, 10, (LevelTypes)(-1)); Item val6 = lilyslootassets.LoadAsset<Item>("trafficlights"); NetworkPrefabs.RegisterNetworkPrefab(val6.spawnPrefab); Items.RegisterScrap(val6, 0, (LevelTypes)256); Items.RegisterScrap(val6, 25, (LevelTypes)8192); Items.RegisterScrap(val6, 21, (LevelTypes)8); Items.RegisterScrap(val6, 13, (LevelTypes)(-1)); Item val7 = lilyslootassets.LoadAsset<Item>("cactus"); NetworkPrefabs.RegisterNetworkPrefab(val7.spawnPrefab); Items.RegisterScrap(val7, 0, (LevelTypes)256); Items.RegisterScrap(val7, 16, (LevelTypes)32); Items.RegisterScrap(val7, 9, (LevelTypes)(-1)); Item val8 = lilyslootassets.LoadAsset<Item>("misscircle"); NetworkPrefabs.RegisterNetworkPrefab(val8.spawnPrefab); Items.RegisterScrap(val8, 0, (LevelTypes)256); Items.RegisterScrap(val8, 6, (LevelTypes)4096); Items.RegisterScrap(val8, 1, (LevelTypes)(-1)); Item val9 = lilyslootassets.LoadAsset<Item>("cerealbox"); NetworkPrefabs.RegisterNetworkPrefab(val9.spawnPrefab); Items.RegisterScrap(val9, 0, (LevelTypes)256); Items.RegisterScrap(val9, 15, (LevelTypes)16); Items.RegisterScrap(val9, 8, (LevelTypes)(-1)); Item val10 = lilyslootassets.LoadAsset<Item>("photoframe"); NetworkPrefabs.RegisterNetworkPrefab(val10.spawnPrefab); Items.RegisterScrap(val10, 0, (LevelTypes)256); Items.RegisterScrap(val10, 5, (LevelTypes)128); Items.RegisterScrap(val10, 1, (LevelTypes)(-1)); } } } namespace lilysloot.Patches { internal class IceCream : PhysicsProp { public override void ItemActivate(bool used, bool buttonDown = true) { ((GrabbableObject)this).ItemActivate(used, buttonDown); if (buttonDown) { ((GrabbableObject)this).playerHeldBy.jumpForce = 100f; } } } [HarmonyPatch(typeof(Terminal))] internal class TerminalInfCredits { [HarmonyPatch("Update")] [HarmonyPostfix] private static void InfCreditsPatch(ref int ___groupCredits) { ___groupCredits = 40404; } } }