From 9b731a681834f6791ac4c1e833f89bcc1f253637 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Tue, 31 Aug 2021 21:42:34 +0000 Subject: [PATCH] Fix incorrect diplay of chart on Pop'n Music old charts. --- .../static/controllers/popn/scores.react.js | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/bemani/frontend/static/controllers/popn/scores.react.js b/bemani/frontend/static/controllers/popn/scores.react.js index d5442e6..4f35b01 100644 --- a/bemani/frontend/static/controllers/popn/scores.react.js +++ b/bemani/frontend/static/controllers/popn/scores.react.js @@ -41,8 +41,21 @@ var network_scores = React.createClass({ return 'Hyper'; case 3: return 'EX'; + case 4: + return 'Normal (no cools)'; + case 5: + return 'Hyper (no cools)'; + case 6: + return 'EX (no cools)'; + case 7: + return 'Enjoy 5 Button'; + case 8: + return 'Enjoy 9 Button'; + case 9: + return '5 Button'; default: return 'u broke it'; + } }, @@ -104,9 +117,12 @@ var network_scores = React.createClass({
- { - this.convertChart(attempt.chart) - } + { attempt.chart >= 4 ? + { this.convertChart(attempt.chart) } : + { + this.convertChart(attempt.chart) + } + }
{ this.state.songs[attempt.songid].difficulties[attempt.chart]