This commit is contained in:
Lachlan Leone
2023-03-15 23:38:46 +11:00
parent 2652461b2a
commit 5e5ec0d118
6 changed files with 74 additions and 38 deletions
@@ -10,21 +10,24 @@ namespace MMOKitchenReborn.Patches
[HarmonyPostfix]
static void CustomerPlayersRateModifier_Postfix(ref float __result, int player_count)
{
__result = 1 + (player_count * 0.25f);
if (player_count > 4)
__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);
if (player_count > 4)
__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);
if (player_count > 4)
__result = 0.75f + (player_count * 0.25f);
}
}
}