using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using LethalLib.Modules;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("Fanta")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Fanta")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("10037a10-0eba-43fe-abff-53c4e87c9453")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Fanta;
[BepInPlugin("Charell.Fanta", "Fanta Mod", "1.0.0")]
public class Fanta : BaseUnityPlugin
{
private const string modGUID = "Charell.Fanta";
private const string modName = "Fanta Mod";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("Charell.Fanta");
internal ManualLogSource mls;
public static Fanta Instance;
private void Awake()
{
//IL_0096: Unknown result type (might be due to invalid IL or missing references)
//IL_00b1: Unknown result type (might be due to invalid IL or missing references)
//IL_00b6: Unknown result type (might be due to invalid IL or missing references)
//IL_00cb: Unknown result type (might be due to invalid IL or missing references)
//IL_00d0: Unknown result type (might be due to invalid IL or missing references)
//IL_0105: Unknown result type (might be due to invalid IL or missing references)
//IL_010c: Unknown result type (might be due to invalid IL or missing references)
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Charell.Fanta");
mls.LogDebug((object)"Plugin Successfully started!");
harmony.PatchAll(typeof(Fanta));
string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "fantamod");
AssetBundle val = AssetBundle.LoadFromFile(text);
Item val2 = val.LoadAsset<Item>("Assets/FantaMod/Fanta.asset");
val2.spawnPrefab.transform.localScale = new Vector3(3f, 3f, 3f);
val2.positionOffset = new Vector3(-0.1f, 0.15f, -0.03f);
val2.rotationOffset = new Vector3(160f, 190f, 90f);
val2.minValue = 125;
val2.maxValue = 250;
NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
Utilities.FixMixerGroups(val2.spawnPrefab);
LevelTypes val3 = (LevelTypes)15352;
Items.RegisterScrap(val2, 300, val3);
TerminalNode val4 = ScriptableObject.CreateInstance<TerminalNode>();
val4.clearPreviousText = true;
val4.displayText = "This is a normal Fanta with Orange-Taste!\n\n";
Items.RegisterShopItem(val2, (TerminalNode)null, (TerminalNode)null, val4, 100);
((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded item Fanta!");
}
}