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.Logging;
using Microsoft.CodeAnalysis;
using On.RoR2;
using RoR2;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("NoLevelStats")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NoLevelStats")]
[assembly: AssemblyTitle("NoLevelStats")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[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 NoLevelStats
{
[BepInDependency(/*Could not decode attribute arguments.*/)]
[BepInPlugin("zombieseatflesh7.NoLevelStats", "NoLevelStats", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
[Serializable]
[CompilerGenerated]
private sealed class <>c
{
public static readonly <>c <>9 = new <>c();
public static hook_Start <>9__9_0;
internal void <Awake>b__9_0(orig_Start orig, CharacterBody self)
{
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_000d: Invalid comparison between Unknown and I4
if ((int)self.teamComponent.teamIndex == 1)
{
UpdateLevelStats(self, 5f, 4f, 0f, 0f);
}
else
{
UpdateLevelStats(self, 4f, 3f, 4f / 9f, 0.375f);
}
orig.Invoke(self);
}
}
public const string PluginGUID = "zombieseatflesh7.NoLevelStats";
public const string PluginAuthor = "zombieseatflesh7";
public const string PluginName = "NoLevelStats";
public const string PluginVersion = "1.0.0";
public static ManualLogSource Logger;
public static PluginInfo PInfo { get; private set; }
public void Awake()
{
//IL_002c: Unknown result type (might be due to invalid IL or missing references)
//IL_0031: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Expected O, but got Unknown
PInfo = ((BaseUnityPlugin)this).Info;
Logger = ((BaseUnityPlugin)this).Logger;
object obj = <>c.<>9__9_0;
if (obj == null)
{
hook_Start val = delegate(orig_Start orig, CharacterBody self)
{
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
//IL_000d: Invalid comparison between Unknown and I4
if ((int)self.teamComponent.teamIndex == 1)
{
UpdateLevelStats(self, 5f, 4f, 0f, 0f);
}
else
{
UpdateLevelStats(self, 4f, 3f, 4f / 9f, 0.375f);
}
orig.Invoke(self);
};
<>c.<>9__9_0 = val;
obj = (object)val;
}
CharacterBody.Start += (hook_Start)obj;
}
public static void UpdateLevelStats(CharacterBody self, float baseHealth, float baseDamage, float levelHealth, float levelDamage)
{
self.baseDamage *= baseDamage;
self.levelDamage *= levelDamage;
self.baseMaxHealth *= baseHealth;
self.levelMaxHealth *= levelHealth;
self.baseRegen *= baseHealth;
self.levelRegen *= levelHealth;
self.baseMaxShield *= baseHealth;
self.levelMaxShield *= levelHealth;
}
}
}