-
Notifications
You must be signed in to change notification settings - Fork 8
/
Patch.cs
30 lines (25 loc) · 859 Bytes
/
Patch.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
using HarmonyLib;
using Klei.AI;
using RomenH.Common;
namespace RomenH.GermicideLamp
{
[HarmonyPatch(typeof(Db), nameof(Db.Initialize))]
public static class Db_Initialize_Patch
{
public static void Postfix()
{
BuildingUtils.AddBuildingToPlanScreen(GermicideLampConfig.ID, GameStrings.PlanMenuCategory.Medicine);
BuildingUtils.AddBuildingToPlanScreen(CeilingGermicideLampConfig.ID, GameStrings.PlanMenuCategory.Medicine);
BuildingUtils.AddBuildingToTech(GermicideLampConfig.ID, GameStrings.Technology.Medicine.MicroTargetedMedicine);
BuildingUtils.AddBuildingToTech(CeilingGermicideLampConfig.ID, GameStrings.Technology.Medicine.PathogenDiagnostics);
}
}
[HarmonyPatch(typeof(Localization), "Initialize")]
public class Localization_Initialize_Patch
{
public static void Postfix()
{
StringUtils.LoadTranslations();
}
}
}