public bool CheckLikeable(TasteCustomer taste) { if (TasteLiked.Contains(taste)) { return(true); } return(false); }
public void DetectSpot(SpotType spotType) { if (TasteLiked.Where(ts => ts.SpotType == spotType) != null) { BeneficEffect(); return; } if (TasteHated.Where(ts => ts.SpotType == spotType) != null) { MalusEffect(); return; } }