mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 02:13:29 +08:00
109 lines
5.9 KiB
C#
109 lines
5.9 KiB
C#
using BepInEx;
|
|
using UXAssist.Common;
|
|
|
|
namespace CheatEnabler;
|
|
|
|
[BepInDependency("org.soardev.uxassist")]
|
|
[BepInPlugin(PluginInfo.PLUGIN_GUID, PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
|
|
public class CheatEnabler : BaseUnityPlugin
|
|
{
|
|
public new static readonly BepInEx.Logging.ManualLogSource Logger =
|
|
BepInEx.Logging.Logger.CreateLogSource(PluginInfo.PLUGIN_NAME);
|
|
|
|
private void Awake()
|
|
{
|
|
DevShortcuts.Enabled = Config.Bind("General", "DevShortcuts", false, "Enable DevMode shortcuts");
|
|
AbnormalDisabler.Enabled = Config.Bind("General", "DisableAbnormalChecks", false,
|
|
"disable all abnormal checks");
|
|
TechPatch.Enabled = Config.Bind("General", "UnlockTech", false,
|
|
"Unlock clicked tech by holding key-modifilers(Shift/Alt/Ctrl)");
|
|
FactoryPatch.ImmediateEnabled = Config.Bind("Build", "ImmediateBuild", false,
|
|
"Build immediately");
|
|
FactoryPatch.ArchitectModeEnabled = Config.Bind("Build", "Architect", false,
|
|
"Architect Mode");
|
|
FactoryPatch.NoConditionEnabled = Config.Bind("Build", "BuildWithoutCondition", false,
|
|
"Build without condition");
|
|
FactoryPatch.NoCollisionEnabled = Config.Bind("Build", "NoCollision", false,
|
|
"No collision");
|
|
FactoryPatch.BeltSignalGeneratorEnabled = Config.Bind("Build", "BeltSignalGenerator", false,
|
|
"Belt signal generator");
|
|
FactoryPatch.BeltSignalNumberAltFormat = Config.Bind("Build", "BeltSignalNumberFormat", false,
|
|
"Belt signal number format alternative format (AAAA=generation speed in minutes, B=proliferate points, C=stack count):\n AAAABC by default\n BCAAAA as alternative");
|
|
FactoryPatch.BeltSignalCountRecipeEnabled = Config.Bind("Build", "BeltSignalCountRecipe", false,
|
|
"Belt signal count all raws and intermediates in statistics");
|
|
FactoryPatch.RemovePowerSpaceLimitEnabled = Config.Bind("Build", "RemovePowerDistanceLimit", false,
|
|
"Remove distance limit for wind turbines and geothermals");
|
|
FactoryPatch.BoostWindPowerEnabled = Config.Bind("Build", "BoostWindPower", false,
|
|
"Boost wind power");
|
|
FactoryPatch.BoostSolarPowerEnabled = Config.Bind("Build", "BoostSolarPower", false,
|
|
"Boost solar power");
|
|
FactoryPatch.BoostFuelPowerEnabled = Config.Bind("Build", "BoostFuelPower", false,
|
|
"Boost fuel power");
|
|
FactoryPatch.BoostGeothermalPowerEnabled = Config.Bind("Build", "BoostGeothermalPower", false,
|
|
"Boost geothermal power");
|
|
ResourcePatch.InfiniteResourceEnabled = Config.Bind("Planet", "AlwaysInfiniteResource", false,
|
|
"always infinite natural resource");
|
|
ResourcePatch.FastMiningEnabled = Config.Bind("Planet", "FastMining", false,
|
|
"super-fast mining speed");
|
|
PlanetPatch.WaterPumpAnywhereEnabled = Config.Bind("Planet", "WaterPumpAnywhere", false,
|
|
"Can pump water anywhere (while water type is not None)");
|
|
PlanetPatch.TerraformAnywayEnabled = Config.Bind("Planet", "TerraformAnyway", false,
|
|
"Can do terraform without enough sands");
|
|
DysonSpherePatch.SkipBulletEnabled = Config.Bind("DysonSphere", "SkipBullet", false,
|
|
"Skip bullet");
|
|
DysonSpherePatch.SkipAbsorbEnabled = Config.Bind("DysonSphere", "SkipAbsorb", false,
|
|
"Skip absorption");
|
|
DysonSpherePatch.QuickAbsorbEnabled = Config.Bind("DysonSphere", "QuickAbsorb", false,
|
|
"Quick absorb");
|
|
DysonSpherePatch.EjectAnywayEnabled = Config.Bind("DysonSphere", "EjectAnyway", false,
|
|
"Eject anyway");
|
|
DysonSpherePatch.OverclockEjectorEnabled = Config.Bind("DysonSphere", "OverclockEjector", false,
|
|
"Overclock ejector");
|
|
DysonSpherePatch.OverclockSiloEnabled = Config.Bind("DysonSphere", "OverclockSilo", false,
|
|
"Overclock silo");
|
|
BirthPlanetPatch.SitiVeinsOnBirthPlanet = Config.Bind("Birth", "SiTiVeinsOnBirthPlanet", false,
|
|
"Silicon/Titanium on birth planet");
|
|
BirthPlanetPatch.FireIceOnBirthPlanet = Config.Bind("Birth", "FireIceOnBirthPlanet", false,
|
|
"Fire ice on birth planet");
|
|
BirthPlanetPatch.KimberliteOnBirthPlanet = Config.Bind("Birth", "KimberliteOnBirthPlanet", false,
|
|
"Kimberlite on birth planet");
|
|
BirthPlanetPatch.FractalOnBirthPlanet = Config.Bind("Birth", "FractalOnBirthPlanet", false,
|
|
"Fractal silicon on birth planet");
|
|
BirthPlanetPatch.OrganicOnBirthPlanet = Config.Bind("Birth", "OrganicOnBirthPlanet", false,
|
|
"Organic crystal on birth planet");
|
|
BirthPlanetPatch.OpticalOnBirthPlanet = Config.Bind("Birth", "OpticalOnBirthPlanet", false,
|
|
"Optical grating crystal on birth planet");
|
|
BirthPlanetPatch.SpiniformOnBirthPlanet = Config.Bind("Birth", "SpiniformOnBirthPlanet", false,
|
|
"Spiniform stalagmite crystal on birth planet");
|
|
BirthPlanetPatch.UnipolarOnBirthPlanet = Config.Bind("Birth", "UnipolarOnBirthPlanet", false,
|
|
"Unipolar magnet on birth planet");
|
|
BirthPlanetPatch.FlatBirthPlanet = Config.Bind("Birth", "FlatBirthPlanet", false,
|
|
"Birth planet is solid flat (no water at all)");
|
|
BirthPlanetPatch.HighLuminosityBirthStar = Config.Bind("Birth", "HighLuminosityBirthStar", false,
|
|
"Birth star has high luminosity");
|
|
|
|
UIConfigWindow.Init();
|
|
|
|
DevShortcuts.Init();
|
|
AbnormalDisabler.Init();
|
|
TechPatch.Init();
|
|
FactoryPatch.Init();
|
|
ResourcePatch.Init();
|
|
PlanetPatch.Init();
|
|
DysonSpherePatch.Init();
|
|
BirthPlanetPatch.Init();
|
|
}
|
|
|
|
private void OnDestroy()
|
|
{
|
|
BirthPlanetPatch.Uninit();
|
|
DysonSpherePatch.Uninit();
|
|
PlanetPatch.Uninit();
|
|
ResourcePatch.Uninit();
|
|
FactoryPatch.Uninit();
|
|
TechPatch.Uninit();
|
|
AbnormalDisabler.Uninit();
|
|
DevShortcuts.Uninit();
|
|
}
|
|
}
|