protected override bool Satisfied(Pawn pawn) { MentalState mentalState = pawn.MentalState; if (mentalState != null) { return(stateClass.IsAssignableFrom(mentalState.GetType())); } return(false); }
protected override bool Satisfied(Pawn pawn) { MentalState mentalState = pawn.MentalState; return(mentalState != null && this.stateClass.IsAssignableFrom(mentalState.GetType())); }