Files
MMOKitchen/MMOKitchen/Patches/DifficultyHelpers_Patch.cs
T
Lachlan Leone cc0ced82f9 v0.1.7
2023-03-13 18:31:52 +11:00

31 lines
770 B
C#

using HarmonyLib;
using Kitchen;
namespace MMOKitchenReborn.Patches
{
[HarmonyPatch(typeof(DifficultyHelpers))]
public class DifficultyHelpers_Patch
{
[HarmonyPatch("CustomerPlayersRateModifier")]
[HarmonyPostfix]
static void CustomerPlayersRateModifier_Postfix(ref float __result, int player_count)
{
__result = 1 + (player_count * 0.25f);
}
[HarmonyPatch("FireSpreadModifier")]
[HarmonyPostfix]
static void FireSpreadModifier_Postfix(ref float __result, int player_count)
{
__result = 0.75f + (player_count * 0.25f);
}
[HarmonyPatch("PatiencePlayerCountModifier")]
[HarmonyPostfix]
static void PatiencePlayerCountModifier_Postfix(ref float __result, int player_count)
{
__result = 0.75f + (player_count * 0.25f);
}
}
}