using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using UnityEngine;
using Voxels.TowerDefense.CampaignGeneration;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("islandsize")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("islandsize")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("a721ce62-6e69-49c2-8d6d-7fa67a4b9122")]
[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 BiggerIslandsMod;
[BepInPlugin("com.yourname.biggerislands", "Bigger Islands Mod", "1.1.0")]
public class BiggerIslandsPlugin : BaseUnityPlugin
{
private void Awake()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_000c: Expected O, but got Unknown
Harmony val = new Harmony("com.yourname.biggerislands.patch");
val.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Bigger Islands Mod (v1.1 - Max 13) is loaded!");
}
}
[HarmonyPatch(typeof(IslandSizeField), "GetRandomDimensions")]
public class IslandSizePatch
{
public static void Postfix(ref Vector2Int __result)
{
//IL_0026: Unknown result type (might be due to invalid IL or missing references)
//IL_002b: Unknown result type (might be due to invalid IL or missing references)
int num = Random.Range(6, 14);
int num2 = ((num <= 11) ? Random.Range(1, 6) : 2);
__result = new Vector2Int(num, num2);
}
}