This commit is contained in:
2025-09-22 15:40:32 +08:00
parent 0ac7be78ad
commit db7e4393bc
12 changed files with 1701 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using HarmonyLib;
using Verse;
using RimWorld;
namespace ArachnaeSwarm
{
[HarmonyPatch(typeof(Building_TurretGun), "get_CanSetForcedTarget")]
public static class Patch_Building_TurretGun_CanSetForcedTarget
{
public static void Postfix(Building_TurretGun __instance, ref bool __result)
{
if (__result)
{
return;
}
if (__instance.GetComp<CompForceTargetable>() != null && __instance.Faction == Faction.OfPlayer)
{
__result = true;
}
}
}
}