diff --git a/Projects/DustlandDelivery/AgainstTheStorm.sln.DotSettings.user b/Projects/DustlandDelivery/AgainstTheStorm.sln.DotSettings.user new file mode 100644 index 0000000..38dd5c1 --- /dev/null +++ b/Projects/DustlandDelivery/AgainstTheStorm.sln.DotSettings.user @@ -0,0 +1,28 @@ + + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True \ No newline at end of file diff --git a/Projects/DustlandDelivery/DustlandDelivery.sln b/Projects/DustlandDelivery/DustlandDelivery.sln new file mode 100644 index 0000000..214108a --- /dev/null +++ b/Projects/DustlandDelivery/DustlandDelivery.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DustlandDelivery", "DustlandDelivery\DustlandDelivery.csproj", "{DA9D274E-486F-4F82-84FF-CD9388CB0B09}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DA9D274E-486F-4F82-84FF-CD9388CB0B09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DA9D274E-486F-4F82-84FF-CD9388CB0B09}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DA9D274E-486F-4F82-84FF-CD9388CB0B09}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DA9D274E-486F-4F82-84FF-CD9388CB0B09}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Projects/DustlandDelivery/DustlandDelivery.sln.DotSettings.user b/Projects/DustlandDelivery/DustlandDelivery.sln.DotSettings.user new file mode 100644 index 0000000..0d4d5ac --- /dev/null +++ b/Projects/DustlandDelivery/DustlandDelivery.sln.DotSettings.user @@ -0,0 +1,33 @@ + + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True \ No newline at end of file diff --git a/Projects/DustlandDelivery/DustlandDelivery/Class1.cs b/Projects/DustlandDelivery/DustlandDelivery/Class1.cs new file mode 100644 index 0000000..464bfa3 --- /dev/null +++ b/Projects/DustlandDelivery/DustlandDelivery/Class1.cs @@ -0,0 +1,34 @@ +using System.Linq; +using BepInEx; +using BepInEx.Configuration; +using HarmonyLib; +using HarmonyLib.Tools; + +namespace DustlandDelivery { + [BepInPlugin(pluginGuid, pluginName, pluginVersion)] + public class Main : BaseUnityPlugin { + private const string pluginGuid = "CykaMod"; + private const string pluginName = "CykaMod"; + private const string pluginVersion = "1.0.0"; + + public static ConfigEntry SellPriceMultiplier; + public static ConfigEntry XPMultiplier; + public static ConfigEntry BookCostMultiplier; + + public void Awake() { + SellPriceMultiplier = Config.Bind("General", "SellMultiplier", 1F, + new ConfigDescription("SellMultiplier", new AcceptableValueRange(1, 512))); + XPMultiplier = Config.Bind("General", "XPMultiplier", 1F, + new ConfigDescription("XPMultiplier", new AcceptableValueRange(1, 512))); + BookCostMultiplier = Config.Bind("General", "BookCostMultiplier", 1F, + new ConfigDescription("BookCostMultiplier", new AcceptableValueRange(0.01F, 512))); + + Logger.LogInfo("Cyka mod loaded"); + HarmonyFileLog.Enabled = true; + Harmony harmony = new Harmony(pluginGuid); + harmony.PatchAll(); + var originalMethods = harmony.GetPatchedMethods(); + Logger.LogInfo("Patched " + originalMethods.Count() + " methods"); + } + } +} diff --git a/Projects/DustlandDelivery/DustlandDelivery/DustlandDelivery.csproj b/Projects/DustlandDelivery/DustlandDelivery/DustlandDelivery.csproj index b931ef4..fbf32fc 100644 --- a/Projects/DustlandDelivery/DustlandDelivery/DustlandDelivery.csproj +++ b/Projects/DustlandDelivery/DustlandDelivery/DustlandDelivery.csproj @@ -31,36 +31,6 @@ prompt 4 - - - libs\0Harmony.dll - - - libs\Assembly-CSharp.dll - - - libs\BepInEx.dll - - - libs\ConfigurationManager.dll - - - libs\MainAssembly.dll - - - libs\Sirenix.Serialization.dll - - - - - - - libs\UnityEngine.dll - - - libs\UnityEngine.CoreModule.dll - - @@ -68,7 +38,21 @@ - + + ..\libs\0Harmony.dll + + + ..\libs\Assembly-CSharp.dll + + + ..\libs\BepInEx.dll + + + ..\libs\UnityEngine.dll + + + ..\libs\UnityEngine.CoreModule.dll +