-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCookingPatches.cs
31 lines (27 loc) · 945 Bytes
/
CookingPatches.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using HarmonyLib;
using System.Collections.Generic;
class CookingPatches
{
public static void TweakFoodValues()
{
TUNING.FOOD.FOOD_TYPES.COOKED_MEAT.Quality = 2;
TUNING.FOOD.FOOD_TYPES.FISH_MEAT.Quality = 1;
TUNING.FOOD.FOOD_TYPES.COOKED_FISH.Quality = 3; // even though cooked fish is already quality 3
}
[HarmonyPatch(typeof(MicrobeMusherConfig), nameof(MicrobeMusherConfig.CreateBuildingDef))]
class MicrobeMusherConfig_CreateBuildingDef_Patch
{
public static void Postfix(BuildingDef __result)
{
__result.EnergyConsumptionWhenActive = 60f;
}
}
[HarmonyPatch(typeof(CookingStationConfig), nameof(CookingStationConfig.CreateBuildingDef))]
class ElectricGrillConfig_CreateBuildingDef_Patch
{
public static void Postfix(BuildingDef __result)
{
__result.EnergyConsumptionWhenActive = 120f;
}
}
}