using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
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("RockPets")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RockPets")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("76648410-038b-41d9-9424-c695d0f38f1f")]
[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 RockPets;
[BepInPlugin("DeziorsRockPets", "RockPets", "0.0.1")]
public class RockyPets : BaseUnityPlugin
{
private bool debug = false;
private const string modGUID = "DeziorsRockPets";
private const string modName = "RockPets";
private const string modVersion = "0.0.1";
private static RockyPets instance;
private void Awake()
{
instance = this;
string[] array = new string[6] { "bripple", "pebbler", "razor", "rocky", "sameer", "googler" };
string[] array2 = new string[6] { "Assets/petrocks/bricky/bripple.asset", "Assets/petrocks/pebble/pebble.asset", "Assets/petrocks/Razor/razor.asset", "Assets/petrocks/rocky/rockyitem.asset", "Assets/petrocks/Sameer/sameer.asset", "Assets/petrocks/googler/googler.asset" };
int[] array3 = new int[6] { 40, 10, 30, 20, 20, 20 };
int[] array4 = new int[6] { 80, 20, 50, 40, 60, 60 };
int[] array5 = new int[6] { 5, 80, 10, 30, 20, 40 };
if (debug)
{
for (int i = 0; i < array5.Length; i++)
{
array5[i] = 100000;
}
}
for (int j = 0; j < array.Length; j++)
{
string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), array[j]);
AssetBundle val = AssetBundle.LoadFromFile(text);
Item val2 = val.LoadAsset<Item>(array2[j]);
val2.minValue = array3[j] * 100 / 40;
val2.maxValue = array4[j] * 100 / 40;
val2.isScrap = true;
Items.RegisterScrap(val2, array5[j], (LevelTypes)(-1));
Utilities.FixMixerGroups(val2.spawnPrefab);
NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
if (debug)
{
TerminalNode val3 = ScriptableObject.CreateInstance<TerminalNode>();
val3.clearPreviousText = true;
val3.displayText = "This is for developent\n\n";
Items.RegisterShopItem(val2, (TerminalNode)null, (TerminalNode)null, val3, 1);
}
((BaseUnityPlugin)this).Logger.LogInfo((object)("Loaded Item PetRocks " + array[j]));
}
}
}