using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using EntityStates;
using EntityStates.Duplicator;
using EntityStates.Scrapper;
using Microsoft.CodeAnalysis;
using On.EntityStates.Duplicator;
using On.RoR2;
using R2API.Utils;
using RoR2;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyCompany("FasterFasterFaster")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("FasterFasterFaster")]
[assembly: AssemblyTitle("FasterFasterFaster")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[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;
}
}
}
namespace fasterfasterfaster
{
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("Sandboxjoe.FasterFasterFaster", "FasterFasterFaster", "1.0")]
[R2APISubmoduleDependency(new string[] { "ItemAPI", "LanguageAPI" })]
[NetworkCompatibility(/*Could not decode attribute arguments.*/)]
public class fasterfasterfaster : BaseUnityPlugin
{
[Serializable]
[CompilerGenerated]
private sealed class <>c
{
public static readonly <>c <>9 = new <>c();
public static hook_DropDroplet <>9__8_1;
public static hook_ItemDrop <>9__8_2;
internal void <Awake>b__8_1(orig_DropDroplet orig, Duplicating self)
{
((Component)((EntityState)self).outer).GetComponent<PurchaseInteraction>().Networkavailable = true;
orig.Invoke(self);
}
internal void <Awake>b__8_2(orig_ItemDrop orig, ChestBehavior self)
{
Reflection.SetFieldValue<float>((object)self, "dropUpVelocityStrength", 0.2f);
Reflection.SetFieldValue<float>((object)self, "dropForwardVelocityStrength", 0.2f);
orig.Invoke(self);
}
}
public const string PluginGUID = "Sandboxjoe.FasterFasterFaster";
public const string PluginAuthor = "Sandboxjoe";
public const string PluginName = "FasterFasterFaster";
public const string PluginVersion = "1.0";
public static ConfigEntry<float> delay { get; set; }
public void Awake()
{
//IL_0040: Unknown result type (might be due to invalid IL or missing references)
//IL_004a: Expected O, but got Unknown
//IL_005e: Unknown result type (might be due to invalid IL or missing references)
//IL_0063: Unknown result type (might be due to invalid IL or missing references)
//IL_0069: Expected O, but got Unknown
//IL_0099: Unknown result type (might be due to invalid IL or missing references)
//IL_00a3: Expected O, but got Unknown
//IL_00a9: Unknown result type (might be due to invalid IL or missing references)
//IL_00b3: Expected O, but got Unknown
//IL_0082: Unknown result type (might be due to invalid IL or missing references)
//IL_0087: Unknown result type (might be due to invalid IL or missing references)
//IL_008d: Expected O, but got Unknown
delay = ((BaseUnityPlugin)this).Config.Bind<float>("the delay", "for everything", 0.1f, "LETS GO");
float d = delay.Value;
Stage.Start += (hook_Start)delegate(orig_Start orig, Stage self)
{
orig.Invoke(self);
Reflection.SetFieldValue<float>(typeof(Duplicating), "initialDelayDuration", d);
Reflection.SetFieldValue<float>(typeof(Duplicating), "timeBetweenStartAndDropDroplet", d);
Reflection.SetFieldValue<float>(typeof(WaitToBeginScrapping), "duration", 0f);
Reflection.SetFieldValue<float>(typeof(ScrappingToIdle), "duration", 0f);
Reflection.SetFieldValue<float>(typeof(Scrapping), "duration", 0f);
};
object obj = <>c.<>9__8_1;
if (obj == null)
{
hook_DropDroplet val = delegate(orig_DropDroplet orig, Duplicating self)
{
((Component)((EntityState)self).outer).GetComponent<PurchaseInteraction>().Networkavailable = true;
orig.Invoke(self);
};
<>c.<>9__8_1 = val;
obj = (object)val;
}
Duplicating.DropDroplet += (hook_DropDroplet)obj;
object obj2 = <>c.<>9__8_2;
if (obj2 == null)
{
hook_ItemDrop val2 = delegate(orig_ItemDrop orig, ChestBehavior self)
{
Reflection.SetFieldValue<float>((object)self, "dropUpVelocityStrength", 0.2f);
Reflection.SetFieldValue<float>((object)self, "dropForwardVelocityStrength", 0.2f);
orig.Invoke(self);
};
<>c.<>9__8_2 = val2;
obj2 = (object)val2;
}
ChestBehavior.ItemDrop += (hook_ItemDrop)obj2;
ShrineChanceBehavior.AddShrineStack += (hook_AddShrineStack)delegate(orig_AddShrineStack orig, ShrineChanceBehavior self, Interactor interactor)
{
orig.Invoke(self, interactor);
self.refreshTimer = d;
};
TimerQueue.CreateTimer += (hook_CreateTimer)delegate(orig_CreateTimer orig, TimerQueue self, float time, Action action)
{
//IL_0022: Unknown result type (might be due to invalid IL or missing references)
//IL_0055: Unknown result type (might be due to invalid IL or missing references)
//IL_004a: Unknown result type (might be due to invalid IL or missing references)
if (action.Target.ToString().Contains("LunarCauldron"))
{
return orig.Invoke(self, d, action);
}
return action.Target.ToString().Contains("ShrineCleanse") ? orig.Invoke(self, d, action) : orig.Invoke(self, time, action);
};
}
}
}