暂存
This commit is contained in:
Binary file not shown.
@@ -53,6 +53,17 @@
|
||||
</dataSouth>
|
||||
</drawData>
|
||||
</li>
|
||||
<li> <!-- 使用默认的 PawnRenderNodeProperties -->
|
||||
<debugLabel>Wings (Hides when flying)</debugLabel>
|
||||
<workerClass>ArachnaeSwarm.PawnRenderNodeWorker_AttachmentBody_NoFlight</workerClass>
|
||||
<texPath>ArachnaeSwarm/Things/General/Invisible/Inv</texPath>
|
||||
<baseLayer>60</baseLayer>
|
||||
<drawData>
|
||||
<dataSouth>
|
||||
<layer>-10</layer>
|
||||
</dataSouth>
|
||||
</drawData>
|
||||
</li>
|
||||
<!-- ===== OUR CUSTOM NODE INSERTION END ===== -->
|
||||
|
||||
<li Class="PawnRenderNodeProperties_Parent">
|
||||
|
||||
@@ -529,7 +529,6 @@
|
||||
<baseHealthScale>1.5</baseHealthScale>
|
||||
<!-- 解剖产物 -->
|
||||
<leatherDef>ARA_Carapace</leatherDef>
|
||||
<specificMeatDef>Meat_Megaspider</specificMeatDef>
|
||||
<!-- 身体类型 -->
|
||||
<body>Human</body>
|
||||
<!-- 年龄阶段,较短 -->
|
||||
|
||||
@@ -598,7 +598,6 @@
|
||||
<baseHealthScale>10</baseHealthScale>
|
||||
<!-- 解剖产物 -->
|
||||
<leatherDef>ARA_Carapace</leatherDef>
|
||||
<specificMeatDef>Meat_Megaspider</specificMeatDef>
|
||||
|
||||
<soundMeleeHitPawn>Pawn_Melee_BigBash_HitPawn</soundMeleeHitPawn>
|
||||
<soundMeleeHitBuilding>Pawn_Melee_BigBash_HitBuilding</soundMeleeHitBuilding>
|
||||
|
||||
@@ -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