暂存
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user