Update
This commit is contained in:
Binary file not shown.
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
|
Binary file not shown.
@@ -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)
|
||||
|
Reference in New Issue
Block a user