mirror of
https://gitgud.io/LonelyRain/rjw-quirks.git
synced 2024-08-15 00:03:31 +00:00
20 lines
440 B
C#
20 lines
440 B
C#
using rjw;
|
|
using rjwquirks.Modules.Quirks;
|
|
using System.Linq;
|
|
using Verse;
|
|
|
|
namespace rjwquirks
|
|
{
|
|
public static class PawnExtensions
|
|
{
|
|
public static bool HasQuirk(this Pawn pawn, QuirkDef quirk)
|
|
{
|
|
return xxx.is_human(pawn) && pawn.GetQuirks().Contains(quirk);
|
|
}
|
|
|
|
public static QuirkSet GetQuirks(this Pawn pawn)
|
|
{
|
|
return pawn.GetComp<QuirkSet>();
|
|
}
|
|
}
|
|
}
|