Added race pawntest, further tweaks to animations

This commit is contained in:
c0ffee 2024-05-07 17:14:32 -07:00
parent 87c10cacff
commit c35cd55d25
5 changed files with 36 additions and 4 deletions

View file

@ -17,6 +17,7 @@
<!-- for height -->
<overlayLayer>Head</overlayLayer>
<useSkinShader>True</useSkinShader>
<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
<colorType>Skin</colorType>
<baseLayer>95</baseLayer>
</animPropProperties>

View file

@ -115,7 +115,7 @@
<offsetDefs>
<li>Offset_Placeholder</li> <!-- first pawn in animation -->
<li>Offset_Cowgirl_Bottom</li> <!-- first pawn in animation -->
<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
</offsetDefs>
@ -141,7 +141,7 @@
</animationStages>
<offsetDefs>
<li>Offset_Placeholder</li> <!-- first pawn in animation -->
<li>Offset_Cowgirl_Bottom</li> <!-- first pawn in animation -->
<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
</offsetDefs>
@ -167,7 +167,7 @@
</animationStages>
<offsetDefs>
<li>Offset_Placeholder</li> <!-- first pawn in animation -->
<li>Offset_Cowgirl_Bottom</li> <!-- first pawn in animation -->
<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
</offsetDefs>
@ -193,7 +193,7 @@
</animationStages>
<offsetDefs>
<li>Offset_Placeholder</li> <!-- first pawn in animation -->
<li>Offset_Cowgirl_Bottom</li> <!-- first pawn in animation -->
<li>Offset_Cowgirl_Top</li> <!-- second pawn in animation -->
</offsetDefs>

View file

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
namespace Rimworld_Animations
{
public class PawnTest_Race : BasePawnTest
{
public List<ThingDef> races = new List<ThingDef>();
public override bool PawnTest(Pawn pawn)
{
foreach (ThingDef race in races)
{
if (pawn.def == race)
{
return true;
}
}
return false;
}
}
}

View file

@ -87,6 +87,7 @@
<Compile Include="1.5\Source\Animations\PawnTests\BasePawnTest.cs" />
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Always.cs" />
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Multi.cs" />
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_Race.cs" />
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_RJWCanBeFucked.cs" />
<Compile Include="1.5\Source\Animations\PawnTests\PawnTest_RJWCanFuck.cs" />
<Compile Include="1.5\Source\Comps\CompExtendedAnimator.cs" />