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 BepInEx.Logging;
using Microsoft.CodeAnalysis;
using RoR2;
using UnityEngine;
[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("FalseSonRealLobbySize")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("A Risk of Rain 2 mod")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+986933dee8d7d712ab6604859c76899eb177d8ae")]
[assembly: AssemblyProduct("FalseSonRealLobbySize")]
[assembly: AssemblyTitle("FalseSonRealLobbySize")]
[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 FalseSonRealLobbySize
{
[BepInPlugin("Encoded404.Encoded404.FalseSonRealLobbySize", "FalseSonRealLobbySize", "1.0.0")]
[BepInIncompatibility("com.TheTimeSweeper.SillyFalseSon")]
public class Plugin : BaseUnityPlugin
{
public const string PluginGUID = "Encoded404.Encoded404.FalseSonRealLobbySize";
public const string PluginName = "FalseSonRealLobbySize";
public const string PluginVersion = "1.0.0";
internal static ManualLogSource Log;
private ConfigEntry<float> cfg_displaySizeMulti;
public void Awake()
{
Log = ((BaseUnityPlugin)this).Logger;
cfg_displaySizeMulti = ((BaseUnityPlugin)this).Config.Bind<float>("General", "CSS Size Multiplier", 1f, "Multiplier for False Son's size on the character selection screen. Vanilla is 0.7 * his in-game size.");
RoR2Application.onLoad = (Action)Delegate.Combine(RoR2Application.onLoad, new Action(OnLoad));
Log.LogInfo((object)"FalseSonRealLobbySize v1.0.0 loaded!");
}
private void OnLoad()
{
//IL_0029: Unknown result type (might be due to invalid IL or missing references)
//IL_0039: Unknown result type (might be due to invalid IL or missing references)
SurvivorCatalog.FindSurvivorDefFromBody(((Component)BodyCatalog.FindBodyPrefab("FalseSonBody").GetComponent<CharacterBody>()).gameObject).displayPrefab.transform.GetChild(0).localScale = Vector3.one * cfg_displaySizeMulti.Value;
Log.LogInfo((object)$"False Son CSS display size set to {cfg_displaySizeMulti.Value}x");
}
}
}