mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2026-06-18 19:35:58 +00:00
27 lines
553 B
C#
27 lines
553 B
C#
using RimWorld;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Verse;
|
|
|
|
namespace Rimworld_Animations
|
|
{
|
|
public class PawnTest_Trait : BasePawnTest
|
|
{
|
|
TraitDef traitDef;
|
|
int? degree;
|
|
|
|
public override bool PawnTest(Pawn pawn)
|
|
{
|
|
|
|
if (degree != null)
|
|
{
|
|
return pawn.story.traits.HasTrait(traitDef, (int)degree);
|
|
}
|
|
|
|
return pawn.story.traits.HasTrait(traitDef);
|
|
}
|
|
}
|
|
}
|