bool isSmaller <T>(PrereqPair prereq) { IStattable stat = StatsChecker.getPlayerStatByPrereq(prereq); bool isApplicable = false; T comparisonValue = stat.getValue <T>(); T eventValue = getValue <T>(prereq); isApplicable = (Comparer <T> .Default.Compare(comparisonValue, eventValue) < 0) ? true : false; return(isApplicable); }