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 HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("spuds.SuitColours")]
[assembly: AssemblyConfiguration("release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+fa7c027098ec67cb119c46662d71e1e6a16ca8be")]
[assembly: AssemblyProduct("spuds.SuitColours")]
[assembly: AssemblyTitle("spuds.SuitColours")]
[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 SuitColours
{
[BepInPlugin("spuds.suitcolours", "Suit Colours", "1.0.0")]
public class SuitColoursPlugin : BaseUnityPlugin
{
private void Start()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
new Harmony("spuds.suitcolour").PatchAll();
}
}
[HarmonyPatch(typeof(PlayerVisor), "Update")]
internal class PlayerVisorPatch
{
private static void Postfix(PlayerVisor __instance)
{
//IL_0014: Unknown result type (might be due to invalid IL or missing references)
//IL_0035: Unknown result type (might be due to invalid IL or missing references)
//IL_003a: Unknown result type (might be due to invalid IL or missing references)
//IL_006c: Unknown result type (might be due to invalid IL or missing references)
//IL_008c: Unknown result type (might be due to invalid IL or missing references)
if (!__instance.hue.IsNone)
{
float num = default(float);
float num2 = default(float);
float num3 = default(float);
Color.RGBToHSV(__instance.m_material.color, ref num, ref num2, ref num3);
Color color = Color.HSVToRGB(__instance.hue.Value, num2, 0.4f);
GameObject gameObject = ((Component)((Component)__instance).gameObject.transform.GetChild(1)).gameObject;
((Renderer)((Component)gameObject.transform.GetChild(1)).gameObject.GetComponent<SkinnedMeshRenderer>()).material.color = color;
((Renderer)((Component)gameObject.transform.GetChild(3)).gameObject.GetComponent<SkinnedMeshRenderer>()).material.color = color;
}
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}