using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using RemoveIgnition.Patches;
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("RemoveIgnition")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RemoveIgnition")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("b15436e6-e3f9-442f-a21c-bda2b574dc8a")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace RemoveIgnition
{
[BepInPlugin("Plantain.Ignition", "Plantain Ignition Removal", "1.0.0.0")]
public class RemoveIgnitionBase : BaseUnityPlugin
{
private const string modGUID = "Plantain.Ignition";
private const string modName = "Plantain Ignition Removal";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("Plantain.Ignition");
private static RemoveIgnitionBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Plantain.Ignition");
mls.LogInfo((object)"remove igntion started");
mls = ((BaseUnityPlugin)this).Logger;
harmony.PatchAll(typeof(RemoveIgnitionPatch));
}
}
}
namespace RemoveIgnition.Patches
{
[HarmonyPatch(typeof(VehicleController))]
internal class RemoveIgnitionPatch
{
[HarmonyPrefix]
[HarmonyPatch("TryIgnition")]
private static void RemoveIgnition(ref float ___chanceToStartIgnition)
{
___chanceToStartIgnition = 9999f;
}
}
}