﻿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);
        }
    }
}
