internal static bool Prefix(Survival __instance) { weakness = 1; var weakSpeedThreshold = __instance.GetWeakSpeedThreshold(); if (__instance.food < __instance.GetLowFoodThreshold()) { weakness -= (weakSpeedThreshold - __instance.food) * 0.02f; } if (__instance.water < __instance.GetLowWaterThreshold()) { weakness -= (weakSpeedThreshold - __instance.water) * 0.02f; } return(false); }