using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using Il2CppRUMBLE.MoveSystem;
using MelonLoader;
using RockBlockBlocker;
using RumbleModdingAPI;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: MelonInfo(typeof(main), "RockBlockBlocker", "2.0.1", "UlvakSkillz", null)]
[assembly: MelonGame("Buckethead Entertainment", "RUMBLE")]
[assembly: MelonColor(255, 195, 0, 255)]
[assembly: MelonAuthorColor(255, 195, 0, 255)]
[assembly: VerifyLoaderVersion(0, 6, 2, true)]
[assembly: AssemblyTitle("RockBlockBlocker")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RockBlockBlocker")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("19f4b510-597b-4b18-8fe0-55f3cd84a8c0")]
[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 RockBlockBlocker;
public class main : MelonMod
{
private bool sceneChanged = false;
private string currentScene = "";
private bool init = false;
private int waitedTicks = 20;
public override void OnSceneWasLoaded(int buildIndex, string sceneName)
{
currentScene = sceneName;
sceneChanged = true;
waitedTicks = 20;
init = false;
}
public override void OnFixedUpdate()
{
//IL_009f: Unknown result type (might be due to invalid IL or missing references)
if (!sceneChanged)
{
return;
}
try
{
if (currentScene == "Gym" && !init)
{
if (waitedTicks > 0)
{
waitedTicks--;
return;
}
GameObject poolSmallRock = Structures.GetPoolSmallRock();
for (int num = poolSmallRock.transform.childCount - 1; num >= 0; num--)
{
if (((Component)poolSmallRock.transform.GetChild(num)).gameObject.active)
{
((Component)poolSmallRock.transform.GetChild(num)).GetComponent<Structure>().Kill(Vector3.zero, false, false, true);
break;
}
init = true;
}
}
}
catch
{
return;
}
sceneChanged = false;
}
}