diff --git a/Source/CombatExtended/Harmony/Harmony_ResearchPrerequisitesUtility.cs b/Source/CombatExtended/Harmony/Harmony_ResearchPrerequisitesUtility.cs new file mode 100644 index 0000000000..a1a7c0f111 --- /dev/null +++ b/Source/CombatExtended/Harmony/Harmony_ResearchPrerequisitesUtility.cs @@ -0,0 +1,20 @@ +using System.Collections.Generic; +using HarmonyLib; +using RimWorld; +using Verse; + +namespace CombatExtended +{ + [HarmonyPatch(typeof(ResearchPrerequisitesUtility), nameof(ResearchPrerequisitesUtility.UnlockedDefsGroupedByPrerequisites))] + public class Harmony_ResearchPrerequisitesUtility + { + public static List>> Postfix(List>> input) + { + foreach (var pair in input) + { + pair.second.RemoveWhere(x => x is AmmoDef ammoDef && ammoDef.menuHidden); + } + return input; + } + } +}