11 lines
358 B
C#
11 lines
358 B
C#
using HarmonyLib;
|
|
namespace RacesOfValheim {
|
|
[HarmonyPatch(typeof(Player), "ClearFood")]
|
|
public static class Trol_ClearFood_Patch {
|
|
public static void Postfix(Player __instance) {
|
|
if (__instance == Player.m_localPlayer && TrolRace.IsTrol()) {
|
|
TrolFoodManager.ClearFood(__instance);
|
|
}
|
|
}
|
|
}
|
|
}
|