using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using Microsoft.CodeAnalysis;
using On.RoR2;
using RiskOfOptions;
using RiskOfOptions.OptionConfigs;
using RiskOfOptions.Options;
using RoR2;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("SeekerReprieveTurnRate")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("SeekerReprieveTurnRate")]
[assembly: AssemblyTitle("SeekerReprieveTurnRate")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
}
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("com.hjowe.seekerreprieveturnrate", "Seeker Reprieve Turn Rate", "1.0.0")]
public class Main : BaseUnityPlugin
{
public const string modGUID = "com.hjowe.seekerreprieveturnrate";
public const string modName = "Seeker Reprieve Turn Rate";
public const string modVersion = "1.0.0";
public static ConfigEntry<float> TSCoeficient;
public static ConfigFile configFile = new ConfigFile(Paths.ConfigPath + "\\Hjowe.SeekerReprieveTurn.cfg", true);
private void Awake()
{
//IL_002a: Unknown result type (might be due to invalid IL or missing references)
//IL_0034: Expected O, but got Unknown
TSCoeficient = configFile.Bind<float>("Settings", "Turn Speed Coefficient", 0.02f, "Change the turn rate of reprieve skill. Default: 0.02");
ReprieveVehicle.FixedUpdateMovement += new hook_FixedUpdateMovement(ReprieveVehicle_FixedUpdateMovement);
RiskOfOptionsSetup();
}
private void RiskOfOptionsSetup()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
//IL_000a: Unknown result type (might be due to invalid IL or missing references)
//IL_0015: Unknown result type (might be due to invalid IL or missing references)
//IL_0020: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Unknown result type (might be due to invalid IL or missing references)
//IL_003b: Expected O, but got Unknown
//IL_0036: Unknown result type (might be due to invalid IL or missing references)
//IL_0040: Expected O, but got Unknown
ModSettingsManager.AddOption((BaseOption)new StepSliderOption(TSCoeficient, new StepSliderConfig
{
min = 0.02f,
max = 1f,
increment = 0.01f,
FormatString = "{0:P0}"
}));
}
private void ReprieveVehicle_FixedUpdateMovement(orig_FixedUpdateMovement orig, ReprieveVehicle self)
{
self.turnSpeedCoeficient = TSCoeficient.Value;
orig.Invoke(self);
}
}