diff --git a/Projects/Ereshor/.vs/Ereshor/v16/.suo b/Projects/Ereshor/.vs/Ereshor/v16/.suo index 6f0b1fb..112ae7c 100644 Binary files a/Projects/Ereshor/.vs/Ereshor/v16/.suo and b/Projects/Ereshor/.vs/Ereshor/v16/.suo differ diff --git a/Projects/Ereshor/Ereshor/Class1.cs b/Projects/Ereshor/Ereshor/Class1.cs index 3f9a50a..e77a5e3 100644 --- a/Projects/Ereshor/Ereshor/Class1.cs +++ b/Projects/Ereshor/Ereshor/Class1.cs @@ -30,4 +30,11 @@ namespace Ereshor { Logger.LogInfo("Patched " + originalMethods.Count() + " methods"); } } + + [HarmonyPatch(typeof(GameData), "AddExperience")] + public class GameData_AddExperience { + public static void Prefix(ref int xp) { + xp = (int) ((float)xp * Main.xpMultiplier.Value); + } + } } diff --git a/Projects/Ereshor/sync.yml b/Projects/Ereshor/sync.yml index c0a0ad1..1e1951f 100644 --- a/Projects/Ereshor/sync.yml +++ b/Projects/Ereshor/sync.yml @@ -1,3 +1,3 @@ - source: Ereshor/obj/Release/Ereshor.dll - target: ~/scoop/apps/steam/current/steamapps/common/Ereshor/BepInEx/plugins/Ereshor.dll + target: C:/Games/Erenshor.Early.Access/BepInEx/plugins/Ereshor.dll delete: true diff --git a/Projects/Quasimorph/.vs/Quasimorph/v16/.suo b/Projects/Quasimorph/.vs/Quasimorph/v16/.suo index ae94042..e07edd9 100644 Binary files a/Projects/Quasimorph/.vs/Quasimorph/v16/.suo and b/Projects/Quasimorph/.vs/Quasimorph/v16/.suo differ diff --git a/Projects/Quasimorph/Quasimorph/Class1.cs b/Projects/Quasimorph/Quasimorph/Class1.cs index ef76e26..249ef79 100644 --- a/Projects/Quasimorph/Quasimorph/Class1.cs +++ b/Projects/Quasimorph/Quasimorph/Class1.cs @@ -1,4 +1,5 @@ -using System.Linq; +using System; +using System.Linq; using BepInEx; using BepInEx.Configuration; using HarmonyLib; @@ -33,7 +34,7 @@ namespace Quasimorph { Logger.LogInfo("Patched " + originalMethods.Count() + " methods"); } - [HarmonyPatch(typeof(Perk), nameof(Perk.AddExp))] + [HarmonyPatch(typeof(Perk), "AddExp")] [HarmonyPrefix] public static void AddExp(ref int val) { if (debug.Value)