20 lines
427 B
C#
20 lines
427 B
C#
using BepInEx;
|
|
using HarmonyLib;
|
|
|
|
namespace MxValheim.Patch
|
|
{
|
|
public class WearNTear_Patch
|
|
{
|
|
[HarmonyPatch(typeof(WearNTear), "HaveRoof")]
|
|
class WearNTear_HaveRoof_Patch
|
|
{
|
|
static void Postfix(WearNTear __instance, ref bool __result)
|
|
{
|
|
if (!MxValheimMod.Config_rainDamage.Value) return;
|
|
|
|
__result = true;
|
|
}
|
|
}
|
|
}
|
|
}
|