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 LobbyCompatibility.Attributes;
using Microsoft.CodeAnalysis;
using UnityEngine;
[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("com.studiocanigou.ScrapUnderscoreV2")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("ScrapUnderscoreV2")]
[assembly: AssemblyTitle("com.studiocanigou.ScrapUnderscoreV2")]
[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.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
[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 ScrapUnderscoreV2
{
public static class ConfigSettings
{
public static ConfigEntry<int> geantRarity;
public static ConfigEntry<int> pommeRarity;
public static ConfigEntry<int> sturgeonRarity;
public static ConfigEntry<int> coelacanthRarity;
public static ConfigEntry<int> WassilyRarity;
public static ConfigEntry<int> BananaCatRarity;
public static ConfigEntry<int> TitiRarity;
public static ConfigEntry<int> KaibaRarity;
public static ConfigEntry<int> EtoilesRarity;
public static void BindConfigSettings()
{
geantRarity = ((BaseUnityPlugin)ScrapUnderscoreV2.Instance).Config.Bind<int>("ScrapUnderscore", "geantRarity", 20, "How rare is the Geant de fer scrap - 100 is very common , 1 is very rare.");
pommeRarity = ((BaseUnityPlugin)ScrapUnderscoreV2.Instance).Config.Bind<int>("ScrapUnderscore", "pommeRarity", 25, "How rare is Pomme scrap - 100 is very common , 1 is very rare.");
sturgeonRarity = ((BaseUnityPlugin)ScrapUnderscoreV2.Instance).Config.Bind<int>("ScrapUnderscore", "sturgeonRarity", 25, "How rare is the sturgeon scrap - 100 is very common , 1 is very rare.");
coelacanthRarity = ((BaseUnityPlugin)ScrapUnderscoreV2.Instance).Config.Bind<int>("ScrapUnderscore", "coelacanthRarity", 25, "How rare is the coelacanth scrap - 100 is very common , 1 is very rare.");
WassilyRarity = ((BaseUnityPlugin)ScrapUnderscoreV2.Instance).Config.Bind<int>("ScrapUnderscore", "WassilyRarity", 25, "How rare is the Wassily scrap - 100 is very common , 1 is very rare.");
BananaCatRarity = ((BaseUnityPlugin)ScrapUnderscoreV2.Instance).Config.Bind<int>("ScrapUnderscore", "BananaCatRarity", 25, "How rare is the BananaCat scrap - 100 is very common , 1 is very rare.");
TitiRarity = ((BaseUnityPlugin)ScrapUnderscoreV2.Instance).Config.Bind<int>("ScrapUnderscore", "TitiRarity", 25, "How rare is the Titi scrap - 100 is very common , 1 is very rare.");
KaibaRarity = ((BaseUnityPlugin)ScrapUnderscoreV2.Instance).Config.Bind<int>("ScrapUnderscore", "KaibaRarity", 25, "How rare is the Kaiba scrap - 100 is very common , 1 is very rare.");
EtoilesRarity = ((BaseUnityPlugin)ScrapUnderscoreV2.Instance).Config.Bind<int>("ScrapUnderscore", "EtoilesRarity", 25, "How rare is the Etoiles scrap - 100 is very common , 1 is very rare.");
}
}
[BepInPlugin("com.studiocanigou.ScrapUnderscoreV2", "ScrapUnderscoreV2", "1.0.0")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
[LobbyCompatibility(/*Could not decode attribute arguments.*/)]
public class ScrapUnderscoreV2 : BaseUnityPlugin
{
public static ScrapUnderscoreV2 Instance { get; private set; }
internal static ManualLogSource Logger { get; private set; }
internal static Harmony? Harmony { get; set; }
private void Awake()
{
Logger = ((BaseUnityPlugin)this).Logger;
Instance = this;
ConfigSettings.BindConfigSettings();
string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "scrapUnderscore");
AssetBundle val = AssetBundle.LoadFromFile(text);
Item val2 = val.LoadAsset<Item>("Assets/Scraps/Geant/Geant de fer.asset");
Item val3 = val.LoadAsset<Item>("Assets/Scraps/Baghz/qsmp-pomme-model/Pomme.asset");
Item val4 = val.LoadAsset<Item>("Assets/Scraps/estu/Esturgeon.asset");
Item val5 = val.LoadAsset<Item>("Assets/Scraps/coelacanth/coelacanth.asset");
Item val6 = val.LoadAsset<Item>("Assets/Scraps/autre/wassily-chair/wassily.asset");
Item val7 = val.LoadAsset<Item>("Assets/Scraps/autre/ai-made-banana-cat-gangnam-style/bananacat.asset");
Item val8 = val.LoadAsset<Item>("Assets/Scraps/Baghz/titiiiiiiiiiiiiiiiiiiiiiii/Titi.asset");
Item val9 = val.LoadAsset<Item>("Assets/Scraps/autre/PSKaiba/PSKaiba.asset");
Item val10 = val.LoadAsset<Item>("Assets/Scraps/Etoiles/Etoiles.asset");
NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab);
NetworkPrefabs.RegisterNetworkPrefab(val4.spawnPrefab);
NetworkPrefabs.RegisterNetworkPrefab(val5.spawnPrefab);
NetworkPrefabs.RegisterNetworkPrefab(val6.spawnPrefab);
NetworkPrefabs.RegisterNetworkPrefab(val7.spawnPrefab);
NetworkPrefabs.RegisterNetworkPrefab(val8.spawnPrefab);
NetworkPrefabs.RegisterNetworkPrefab(val9.spawnPrefab);
NetworkPrefabs.RegisterNetworkPrefab(val10.spawnPrefab);
Utilities.FixMixerGroups(val2.spawnPrefab);
Utilities.FixMixerGroups(val3.spawnPrefab);
Utilities.FixMixerGroups(val4.spawnPrefab);
Utilities.FixMixerGroups(val5.spawnPrefab);
Utilities.FixMixerGroups(val6.spawnPrefab);
Utilities.FixMixerGroups(val7.spawnPrefab);
Utilities.FixMixerGroups(val8.spawnPrefab);
Utilities.FixMixerGroups(val9.spawnPrefab);
Utilities.FixMixerGroups(val10.spawnPrefab);
Items.RegisterScrap(val2, ConfigSettings.geantRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val3, ConfigSettings.pommeRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val4, ConfigSettings.sturgeonRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val5, ConfigSettings.coelacanthRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val6, ConfigSettings.WassilyRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val7, ConfigSettings.BananaCatRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val8, ConfigSettings.TitiRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val9, ConfigSettings.KaibaRarity.Value, (LevelTypes)(-1));
Items.RegisterScrap(val10, ConfigSettings.EtoilesRarity.Value, (LevelTypes)(-1));
Logger.LogInfo((object)"Plugin Scrap Underscore is loaded! ");
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "com.studiocanigou.ScrapUnderscoreV2";
public const string PLUGIN_NAME = "ScrapUnderscoreV2";
public const string PLUGIN_VERSION = "1.0.0";
}
}