//Bulk-apply stepchart rating changes public static List <StepChart> ApplyRatingChange(List <StepChart> stepCharts, RatingScaleChange changeType) { foreach (StepChart chart in stepCharts) { switch (changeType) { case RatingScaleChange.ToOld: chart.Rating = Convert.ToInt32(chart.Rating / 1.5); //Ye olde "multiply or divide by 1.5" to convert ratings... not great, but better than having a simfile pack where every file uses a different rating system (thanks, ZiV) break; case RatingScaleChange.ToX: chart.Rating = Convert.ToInt32(chart.Rating * 1.5); break; } } return(stepCharts); }
private void rbSetScale_Click(object sender, RoutedEventArgs e, Simfile simfile, RatingScaleChange scaleChange) { if (saveLocked) { promptForGroupReload(); return; } simfile.ScaleChange = scaleChange; }