Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of TCTweaks v1.0.0
TCTweaks.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using Microsoft.CodeAnalysis; using RoR2; using UnityEngine; using UnityEngine.AddressableAssets; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] [assembly: AssemblyCompany("TCTweaks")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("TCTweaks")] [assembly: AssemblyTitle("TCTweaks")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.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 TCTweaks { [BepInPlugin("com.Nuxlar.TCTweaks", "TCTweaks", "1.0.0")] public class TCTweaks : BaseUnityPlugin { private InteractableSpawnCard tcSpawnCard = Addressables.LoadAssetAsync<InteractableSpawnCard>((object)"RoR2/Base/Drones/MegaDroneBody.prefab").WaitForCompletion(); private GameObject tcPrefab = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/Drones/MegaDroneBody.prefab").WaitForCompletion(); private GameObject tcBrokenPrefab = Addressables.LoadAssetAsync<GameObject>((object)"RoR2/Base/Drones/MegaDroneBroken.prefab").WaitForCompletion(); public static ConfigEntry<int> creditCost; public static ConfigEntry<int> maxSpawns; public static ConfigEntry<int> moneyCost; private static ConfigFile TCTConfig { get; set; } public void Awake() { //IL_0010: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Expected O, but got Unknown //IL_00d7: Unknown result type (might be due to invalid IL or missing references) TCTConfig = new ConfigFile(Paths.ConfigPath + "\\com.Nuxlar.TCTweaks.cfg", true); creditCost = TCTConfig.Bind<int>("General", "Credit Cost", 30, "How many credits it costs the director to spawn TC. Vanilla: 40"); moneyCost = TCTConfig.Bind<int>("General", "Money Cost", 200, "How much the TC should base cost be in coin. Gold Chests are 400. Vanilla: 350"); maxSpawns = TCTConfig.Bind<int>("General", "Max Spawns", 1, "How many TCs can spawn per stage. -1 means there is no limit. Vanilla: -1"); ((SpawnCard)tcSpawnCard).directorCreditCost = 30; tcSpawnCard.maxSpawnsPerStage = 1; tcBrokenPrefab.GetComponent<PurchaseInteraction>().cost = 200; CapsuleCollider component = tcPrefab.GetComponent<CapsuleCollider>(); component.radius = 0.5f; component.height = 1.5f; CharacterBody component2 = tcPrefab.GetComponent<CharacterBody>(); component2.hullClassification = (HullClassification)0; component2.baseMoveSpeed = 10f; component2.baseAcceleration = 30f; } } }