diff --git a/Projects/CarMechanicSimulator2021/.gitignore b/Projects/CarMechanicSimulator2021/.gitignore new file mode 100644 index 0000000..d546405 --- /dev/null +++ b/Projects/CarMechanicSimulator2021/.gitignore @@ -0,0 +1,5 @@ +bin/ +obj/ +/packages/ +riderModule.iml +/_ReSharper.Caches/ \ No newline at end of file diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021.sln b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021.sln new file mode 100644 index 0000000..43c0631 --- /dev/null +++ b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CarMechanicSimulator2021", "CarMechanicSimulator2021\CarMechanicSimulator2021.csproj", "{1DDE7D09-633A-48E5-A548-4BD4BC4CB8D5}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1DDE7D09-633A-48E5-A548-4BD4BC4CB8D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1DDE7D09-633A-48E5-A548-4BD4BC4CB8D5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1DDE7D09-633A-48E5-A548-4BD4BC4CB8D5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1DDE7D09-633A-48E5-A548-4BD4BC4CB8D5}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021.sln.DotSettings.user b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021.sln.DotSettings.user new file mode 100644 index 0000000..c7a915b --- /dev/null +++ b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021.sln.DotSettings.user @@ -0,0 +1,16 @@ + + True + True + True + True + True + True + True + True + True + True + True + True + <AssemblyExplorer> + <Assembly Path="C:\Users\Administrator\Seafile\Projects-Rider\RiderProjects\Bepinex\Projects\CarMechanicSimulator2021\CarMechanicSimulator2021\libs\MelonLoader.dll" /> +</AssemblyExplorer> \ No newline at end of file diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/CarMechanicSimulator2021.csproj b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/CarMechanicSimulator2021.csproj new file mode 100644 index 0000000..815d186 --- /dev/null +++ b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/CarMechanicSimulator2021.csproj @@ -0,0 +1,69 @@ + + + + + Debug + AnyCPU + {1DDE7D09-633A-48E5-A548-4BD4BC4CB8D5} + Library + Properties + SevenDaysToDie + CarMechanicSimulator2021 + v4.0 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + libs\0Harmony.dll + + + libs\Assembly-CSharp.dll + + + libs\Assembly-CSharp-firstpass.dll + + + libs\ConfigurationManager.dll + + + libs\MelonLoader.dll + + + + + + + + + + + + + + + diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/Class1.cs b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/Class1.cs new file mode 100644 index 0000000..d4a5a6f --- /dev/null +++ b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/Class1.cs @@ -0,0 +1,16 @@ +using HarmonyLib.Tools; +using MelonLoader; + +namespace CarMechanicSimulator2021 { + [assembly: MelonInfo(typeof(Main), "CykaMod", "1", "Cyka")] + public class Main : MelonMod { + private const string pluginGuid = "CykaMod"; + + + public void OnInitializeMelon() { + HarmonyFileLog.Enabled = true; + HarmonyLib.Harmony harmony = new HarmonyLib.Harmony(pluginGuid); + harmony.PatchAll(); + } + } +} diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/Properties/AssemblyInfo.cs b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..3e1f527 --- /dev/null +++ b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("CarMechanicSimulator2021")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CarMechanicSimulator2021")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("1DDE7D09-633A-48E5-A548-4BD4BC4CB8D5")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/XPPatch.cs b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/XPPatch.cs new file mode 100644 index 0000000..435d4a8 --- /dev/null +++ b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/XPPatch.cs @@ -0,0 +1,29 @@ +using HarmonyLib; + +namespace CarMechanicSimulator2021 { + [HarmonyPatch] + public class Patches { + [HarmonyPrefix] + [HarmonyPatch(typeof(GlobalData), "AddPlayerExp")] + static void xpMulti(ref float exp) { + exp *= 10; + } + + [HarmonyPrefix] + [HarmonyPatch(typeof(MountObject), "Action")] + static void mountSpeedMulti(MountObject __instance) { + float num = 3f; + float num2 = 1.5f; + float num3 = num2 * num; + bool flag = !__instance.reverseMode; + if (flag) + { + __instance.mountState -= Time.deltaTime * num3 * Mathf.Abs(Mathf.Sin(Time.time * 10f)); + } + else + { + __instance.mountState += Time.deltaTime * num3 * Mathf.Abs(Mathf.Sin(Time.time * 10f)); + } + } + } +} diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/0Harmony.dll b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/0Harmony.dll new file mode 100644 index 0000000..99daef7 Binary files /dev/null and b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/0Harmony.dll differ diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/Assembly-CSharp-firstpass.dll b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/Assembly-CSharp-firstpass.dll new file mode 100644 index 0000000..9ff43ef Binary files /dev/null and b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/Assembly-CSharp-firstpass.dll differ diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/Assembly-CSharp.dll b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/Assembly-CSharp.dll new file mode 100644 index 0000000..dd77dbe Binary files /dev/null and b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/Assembly-CSharp.dll differ diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/ConfigurationManager.dll b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/ConfigurationManager.dll new file mode 100644 index 0000000..9f55bad Binary files /dev/null and b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/ConfigurationManager.dll differ diff --git a/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/MelonLoader.dll b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/MelonLoader.dll new file mode 100644 index 0000000..caf5ab9 Binary files /dev/null and b/Projects/CarMechanicSimulator2021/CarMechanicSimulator2021/libs/MelonLoader.dll differ diff --git a/Projects/CarMechanicSimulator2021/SevenDaysToDie.sln.DotSettings.user b/Projects/CarMechanicSimulator2021/SevenDaysToDie.sln.DotSettings.user new file mode 100644 index 0000000..97f9a81 --- /dev/null +++ b/Projects/CarMechanicSimulator2021/SevenDaysToDie.sln.DotSettings.user @@ -0,0 +1,8 @@ + + True + True + True + True + True + True + True \ No newline at end of file