Files
2025-08-29 16:10:25 +08:00

19 lines
332 B
C#

using HarmonyLib;
using RimWorld;
using Verse;
namespace WulaFallenEmpire
{
[HarmonyPatch(typeof(MechRepairUtility), "IsMissingWeapon")]
public class Patch_MissingWeapon
{
[HarmonyPostfix]
private static void PostFix(ref bool __result, Pawn mech)
{
if (mech.HasComp<CompMechWeapon>())
{
__result = false;
}
}
}
}