${Math.floor(beginnerCompletion * 100)}%
' + '${Math.floor(intermediateCompletion * 100)}%
' + '${Math.floor(advancedCompletion * 100)}%
' + '${Math.floor(expertCompletion * 100)}%
' + '${Math.floor(totalCompletion * 100)}%
' + '${totalPlatinums}/120 ${Math.floor(totalPlatinums / 120.0 * 100)}%
' + '${totalUltimates}/120 ${Math.floor(totalUltimates / 120.0 * 100)}%
' + '${totalEggs}/96 ${Math.floor(totalEggs / 96 * 100)}%
' + '${Settings.playStatistics.oobs}
' + '${Settings.playStatistics.respawns}
' + '${hardestLevel != null ? hardestLevel.title : ""}
' + '${hardestLevel != null ? 'With ${hardestStats.oobs} OOBs, ${hardestStats.respawns} Respawns, and ${Util.formatTimeHours(hardestStats.totalTime)} Played': ""}
' + '${Util.formatTimeHours(totalBestTime)}
' + '${Util.formatTimeHours(Settings.playStatistics.totalTime)}
'; } if (game == "gold") { var beginnerCompletion = completions["beginner"].filter(x -> x.beatPar).length / completions["beginner"].length; var intermediateCompletion = completions["intermediate"].filter(x -> x.beatPar).length / completions["intermediate"].length; var advancedCompletion = completions["advanced"].filter(x -> x.beatPar).length / completions["advanced"].length; var totalCompletion:Float = completions["beginner"].filter(x -> x.beatPar).length + completions["intermediate"].filter(x -> x.beatPar).length + completions["advanced"].filter(x -> x.beatPar).length; totalCompletion /= completions["beginner"].length + completions["intermediate"].length + completions["advanced"].length; statText.text.text = '${Math.floor(beginnerCompletion * 100)}%
' + '${Math.floor(intermediateCompletion * 100)}%
' + '${Math.floor(advancedCompletion * 100)}%
' + '${Math.floor(totalCompletion * 100)}%
' + '${totalPlatinums}/100 ${Math.floor(totalPlatinums / 100.0 * 100)}%
' + '${Settings.playStatistics.oobs}
' + '${Settings.playStatistics.respawns}
' + '${hardestLevel != null ? hardestLevel.title : ""}
' + '${hardestLevel != null ? 'With ${hardestStats.oobs} OOBs, ${hardestStats.respawns} Respawns, and ${Util.formatTimeHours(hardestStats.totalTime)} Played': ""}
' + '${Util.formatTimeHours(totalBestTime)}
' + '${Util.formatTimeHours(Settings.playStatistics.totalTime)}
'; } if (game == "ultra") { var beginnerCompletion = completions["beginner"].filter(x -> x.beatPar).length / completions["beginner"].length; var intermediateCompletion = completions["intermediate"].filter(x -> x.beatPar).length / completions["intermediate"].length; var advancedCompletion = completions["advanced"].filter(x -> x.beatPar).length / completions["advanced"].length; var totalCompletion:Float = completions["beginner"].filter(x -> x.beatPar).length + completions["intermediate"].filter(x -> x.beatPar).length + completions["advanced"].filter(x -> x.beatPar).length; totalCompletion /= completions["beginner"].length + completions["intermediate"].length + completions["advanced"].length; statText.text.text = '${Math.floor(beginnerCompletion * 100)}%
' + '${Math.floor(intermediateCompletion * 100)}%
' + '${Math.floor(advancedCompletion * 100)}%
' + '${Math.floor(totalCompletion * 100)}%
' + '${totalPlatinums}/61 ${Math.floor(totalPlatinums / 61.0 * 100)}%
' + '${totalUltimates}/61 ${Math.floor(totalUltimates / 61.0 * 100)}%
' + '${totalEggs}/20 ${Math.floor(totalEggs / 20 * 100)}%
' + '${Settings.playStatistics.oobs}
' + '${Settings.playStatistics.respawns}
' + '${hardestLevel != null ? hardestLevel.title : ""}
' + '${hardestLevel != null ? 'With ${hardestStats.oobs} OOBs, ${hardestStats.respawns} Respawns, and ${Util.formatTimeHours(hardestStats.totalTime)} Played': ""}
' + '${Util.formatTimeHours(totalBestTime)}
' + '${Util.formatTimeHours(Settings.playStatistics.totalTime)}
'; } } }