public override bool StateCanOccur(Pawn pawn) { if (!pawn.HasTrait(VTEDefOf.VTE_Technophobe)) { return(false); } if (!base.StateCanOccur(pawn)) { return(false); } tmpThings.Clear(); TantrumMentalStateUtility.GetSmashableThingsNear(pawn, pawn.Position, tmpThings, GetCustomValidator()); bool result = tmpThings.Any(); tmpThings.Clear(); return(result); }
protected override void GetPotentialTargets(List <Thing> outThings) { TantrumMentalStateUtility.GetSmashableThingsNear(pawn, pawn.Position, outThings, GetCustomValidator()); }