﻿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_BodyType : BasePawnTest
    {
        public BodyTypeDef bodyType = null;
        public List<BodyTypeDef> bodyTypes = null;

        public override bool PawnTest(Pawn pawn)
        {
               
            if (pawn.story.bodyType == bodyType)
            {
                return true;
            }

            else if(bodyTypes != null && bodyTypes.Contains(pawn.story.bodyType))
            {
                return true;
            }

            return false;

        }
    }
}

1.5/Source/Animations/PawnTests/PawnTest_BodyType.cs