using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using Brix.Legacy;
using HarmonyLib;
using Microsoft.CodeAnalysis;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyCompany("CastleStory_StrongerBeacon")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("CastleStory Stronger Beacon Plugin")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyInformationalVersion("0.1.0+fc13c15f79e0a2e10e91e2c4daf5fe61c9a95104")]
[assembly: AssemblyProduct("CastleStory_StrongerBeacon")]
[assembly: AssemblyTitle("CastleStory_StrongerBeacon")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.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.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace CastleStory_StrongerBeacon
{
[HarmonyPatch(typeof(Beacon), "InstantiateCircleDrag")]
public class BeaconPatch
{
private static void Prefix(out int __state, Beacon __instance)
{
__state = __instance.project.MaxSize;
__instance.project.MaxSize = 100;
__instance.MaxRadius = 100;
}
private static void Postfix(int __state, Beacon __instance)
{
__instance.project.MaxSize = __state;
}
}
[BepInPlugin("CastleStory_StrongerBeacon", "CastleStory_StrongerBeacon", "0.1.0")]
public class Plugin : BaseUnityPlugin
{
private void Awake()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
new Harmony("com.wasikuss.castlestory.strongerbeacon").PatchAll();
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "CastleStory_StrongerBeacon";
public const string PLUGIN_NAME = "CastleStory_StrongerBeacon";
public const string PLUGIN_VERSION = "0.1.0";
}
}