using System;
using System.Diagnostics;
using System.IO;
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 HarmonyLib;
using LethalLib.Modules;
using Microsoft.CodeAnalysis;
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("CirnoFumoScrap")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("A template for Lethal Company")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0+30873030ade78116bcfb416e4f260df69ecf99f5")]
[assembly: AssemblyProduct("CirnoFumoScrap")]
[assembly: AssemblyTitle("CirnoFumoScrap")]
[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 CirnoFumoScrap
{
[BepInPlugin("badham.lc.cirnoscrap", "Cirno Fumo Scrap", "2.0.1")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class FumoCirnoMod : BaseUnityPlugin
{
private const string modGUID = "badham.lc.cirnoscrap";
private const string modName = "Cirno Fumo Scrap";
private const string modVersion = "2.0.1";
private readonly Harmony harmony = new Harmony("badham.lc.cirnoscrap");
private static FumoCirnoMod Instance;
private ConfigEntry<int> configFumoRarity;
internal ManualLogSource mls;
public static AssetBundle CirnoAssets;
private void Awake()
{
//IL_0090: Unknown result type (might be due to invalid IL or missing references)
//IL_009a: Expected O, but got Unknown
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
CirnoAssets = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "fumocirno"));
mls = Logger.CreateLogSource("badham.lc.cirnoscrap");
mls.LogInfo((object)"Cirno has infiltrated your facilities [Version 2.0.1]...");
harmony.PatchAll(typeof(FumoCirnoMod));
configFumoRarity = ((BaseUnityPlugin)this).Config.Bind<int>("General", "FumoRarity", 30, new ConfigDescription("How rare Fumo Cirnos are to find. Lower values mean Fumos spawn less often", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 100), Array.Empty<object>()));
Item val = CirnoAssets.LoadAsset<Item>("assets/Mods/CirnoFumo/FumoCirno.asset");
if ((Object)(object)val == (Object)null)
{
mls.LogError((object)"Failed to load Cirno prefab.");
return;
}
NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab);
Items.RegisterScrap(val, configFumoRarity.Value, (LevelTypes)(-1));
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "CirnoFumoScrap";
public const string PLUGIN_NAME = "CirnoFumoScrap";
public const string PLUGIN_VERSION = "1.0.0";
}
}