This commit is contained in:
2025-09-09 23:54:48 +08:00
parent d1f9e7f17a
commit f3fb6122e3
6 changed files with 34 additions and 2 deletions

View File

@@ -155,6 +155,7 @@
<Compile Include="CompProperties_PawnFlight.cs" />
<Compile Include="HarmonyPatches.cs" />
<Compile Include="OPToxicGas.cs" />
<Compile Include="PawnRenderNodeWorker_AttachmentBody_NoFlight.cs" />
</ItemGroup>
<ItemGroup>

View File

@@ -0,0 +1,22 @@
using Verse;
using UnityEngine;
namespace ArachnaeSwarm
{
public class PawnRenderNodeWorker_AttachmentBody_NoFlight : PawnRenderNodeWorker_AttachmentBody
{
public override bool CanDrawNow(PawnRenderNode node, PawnDrawParms parms)
{
if (parms.pawn.Flying)
{
return false;
}
return base.CanDrawNow(node, parms);
}
public override Vector3 ScaleFor(PawnRenderNode node, PawnDrawParms parms)
{
return base.ScaleFor(node, parms);
}
}
}