using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using Microsoft.CodeAnalysis;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("2 sToRy sHiP")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("this one")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3b42a851-dbf6-428d-a7f2-0af1d6039c22")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
[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;
}
}
}
public class HarmonyPatches
{
[HarmonyPostfix]
[HarmonyPatch(typeof(StartOfRound), "Awake")]
private static void EditApple()
{
foreach (Item items in StartOfRound.Instance.allItemsList.itemsList)
{
if (items.itemName == "Generic apple")
{
items.spawnPrefab.GetComponent<GrabbableObject>().grabbable = true;
}
}
}
}
[BepInPlugin("MelanieMelicious.GenericAppleFix", "Melanie Melicious - Generic Apple Fix", "5.0.0")]
public class Plugin : BaseUnityPlugin
{
private const string GUID = "MelanieMelicious.GenericAppleFix";
private const string NAME = "Melanie Melicious - Generic Apple Fix";
private const string VERSION = "5.0.0";
private readonly Harmony harmony = new Harmony("MelanieMelicious.GenericAppleFix");
private void Awake()
{
harmony.PatchAll(typeof(HarmonyPatches));
}
}