using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using FreeEmbrion.Patches;
using HarmonyLib;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("FreeEmbrion")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FreeEmbrion")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("8469d2b3-6ebf-4891-ad94-5f5749aa6f9c")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace FreeEmbrion
{
[BepInPlugin("OreoM.FreeEmb", "FreeEmbrion", "1.0.0")]
public class FreeEmbrion : BaseUnityPlugin
{
private const string modGUID = "OreoM.FreeEmb";
private const string modName = "FreeEmbrion";
private const string modVersion = "1.0.0";
internal ManualLogSource mls;
private readonly Harmony harmony = new Harmony("OreoM.FreeEmb");
private void Awake()
{
mls = Logger.CreateLogSource("OreoM.FreeEmb");
mls.LogInfo((object)"Pathing");
harmony.PatchAll(typeof(FreeEmbrion));
harmony.PatchAll(typeof(TerminalPatches));
mls.LogInfo((object)"Loaded");
}
}
}
namespace FreeEmbrion.Patches
{
[HarmonyPatch(typeof(Terminal))]
internal class TerminalPatches
{
[HarmonyPatch("Awake")]
[HarmonyPrefix]
private static void PreAwake(Terminal __instance)
{
TerminalNode result = __instance.terminalNodes.allKeywords[27].compatibleNouns[12].result;
result.itemCost = 0;
result.terminalOptions[1].result.itemCost = 0;
}
}
}