DeepWolf413 / Cozyheim-Mods

The git repo for all cozyheim mods - fixed by DeepWolf413
2 stars 0 forks source link

Not work after update (Hildir Request) #6

Closed Spblizard closed 11 months ago

Spblizard commented 1 year ago

Hi, after new update(Hildir request) mod doesn't work, but i'm add fix this patch:

diff --git a/LevelingSystem/Experience & Leveling System (C#)/Skills/Skill Patches/SkillMining.cs b/LevelingSystem/Experience & Leveling System (C#)/Skills/Skill Patches/SkillMining.cs
index d6d5f2e..2432a65 100644
--- a/LevelingSystem/Experience & Leveling System (C#)/Skills/Skill Patches/SkillMining.cs
+++ b/LevelingSystem/Experience & Leveling System (C#)/Skills/Skill Patches/SkillMining.cs
@@ -22,7 +22,7 @@ namespace Cozyheim.LevelingSystem
         private class PatchClass
         {
             [HarmonyPostfix]
-            [HarmonyPatch(typeof(ItemDrop.ItemData), "GetDamage", new Type[] { typeof(int) })]
+            [HarmonyPatch(typeof(ItemDrop.ItemData), "GetDamage", new Type[] { typeof(int), typeof(float) })]
             static void ItemData_GetDamage_Mining_Postfix(ItemDrop.ItemData __instance, ref HitData.DamageTypes __result)
             {
                 if (Instance == null)
diff --git a/LevelingSystem/Experience & Leveling System (C#)/Skills/Skill Patches/SkillWoodcutting.cs b/LevelingSystem/Experience & Leveling System (C#)/Skills/Skill Patches/SkillWoodcutting.cs
index 842bb2d..95d75e6 100644
--- a/LevelingSystem/Experience & Leveling System (C#)/Skills/Skill Patches/SkillWoodcutting.cs
+++ b/LevelingSystem/Experience & Leveling System (C#)/Skills/Skill Patches/SkillWoodcutting.cs
@@ -23,7 +23,7 @@ namespace Cozyheim.LevelingSystem
         private class PatchClass
         {
             [HarmonyPostfix]
-            [HarmonyPatch(typeof(ItemDrop.ItemData), "GetDamage", new Type[] { typeof(int) })]
+            [HarmonyPatch(typeof(ItemDrop.ItemData), "GetDamage", new Type[] { typeof(int), typeof(float) })]
             static void ItemData_GetDamage_Woodcutting_Postfix(ItemDrop.ItemData __instance, ref HitData.DamageTypes __result)
             {
                 if (Instance == null)

can you add to fix it?

DeepWolf413 commented 11 months ago

Hi! Thank you, I'll check it out ASAP later today :-) Sorry for the delay.

DeepWolf413 commented 11 months ago

All good. Implemented, and released the update.