This commit is contained in:
2025-05-17 10:35:45 +02:00
parent 69125d6342
commit 22b048a629
5 changed files with 11 additions and 3 deletions

View File

@@ -30,4 +30,11 @@ namespace Ereshor {
Logger.LogInfo("Patched " + originalMethods.Count() + " methods"); 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);
}
}
} }

View File

@@ -1,3 +1,3 @@
- source: Ereshor/obj/Release/Ereshor.dll - 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 delete: true

View File

@@ -1,4 +1,5 @@
using System.Linq; using System;
using System.Linq;
using BepInEx; using BepInEx;
using BepInEx.Configuration; using BepInEx.Configuration;
using HarmonyLib; using HarmonyLib;
@@ -33,7 +34,7 @@ namespace Quasimorph {
Logger.LogInfo("Patched " + originalMethods.Count() + " methods"); Logger.LogInfo("Patched " + originalMethods.Count() + " methods");
} }
[HarmonyPatch(typeof(Perk), nameof(Perk.AddExp))] [HarmonyPatch(typeof(Perk), "AddExp")]
[HarmonyPrefix] [HarmonyPrefix]
public static void AddExp(ref int val) { public static void AddExp(ref int val) {
if (debug.Value) if (debug.Value)