@@ -58,13 +58,13 @@ function shapingKeys($array){
5858
5959 $ filter = "" ;
6060 if ($ request ->filter === "bs " ){
61- $ filter = "Battle Scoreのみ表示中 " ;
61+ $ filter = "Battle Scoreの更新を表示中 " ;
6262 }
6363 if ($ request ->filter === "ts " ){
64- $ filter = "Technical Scoreのみ表示中 " ;
64+ $ filter = "レーティング関連( Technical Score, Platinum Score, クリアランプ)の更新を表示中 " ;
6565 }
6666 if ($ request ->filter === "od " ){
67- $ filter = "Over Damageのみ表示中 " ;
67+ $ filter = "Over Damageの更新を表示中 " ;
6868 }
6969
7070 $ version = (new ApplicationVersion ())->getLatestVersion ();
@@ -95,53 +95,63 @@ function shapingKeys($array){
9595 'Basic ' => [
9696 'battle_high_score ' => 0 ,
9797 'technical_high_score ' => 0 ,
98+ 'platinum_score ' => 0 ,
9899 'over_damage_high_score ' => 0 ,
99100 ],
100101 'Advanced ' => [
101102 'battle_high_score ' => 0 ,
102103 'technical_high_score ' => 0 ,
104+ 'platinum_score ' => 0 ,
103105 'over_damage_high_score ' => 0 ,
104106 ],
105107 'Expert ' => [
106108 'battle_high_score ' => 0 ,
107109 'technical_high_score ' => 0 ,
110+ 'platinum_score ' => 0 ,
108111 'over_damage_high_score ' => 0 ,
109112 ],
110113 'Master ' => [
111114 'battle_high_score ' => 0 ,
112115 'technical_high_score ' => 0 ,
116+ 'platinum_score ' => 0 ,
113117 'over_damage_high_score ' => 0 ,
114118 ],
115119 'Lunatic ' => [
116120 'battle_high_score ' => 0 ,
117121 'technical_high_score ' => 0 ,
122+ 'platinum_score ' => 0 ,
118123 'over_damage_high_score ' => 0 ,
119124 ],
120125 ],
121126 'old ' =>[
122127 'Basic ' => [
123128 'battle_high_score ' => 0 ,
124129 'technical_high_score ' => 0 ,
130+ 'platinum_score ' => 0 ,
125131 'over_damage_high_score ' => 0 ,
126132 ],
127133 'Advanced ' => [
128134 'battle_high_score ' => 0 ,
129135 'technical_high_score ' => 0 ,
136+ 'platinum_score ' => 0 ,
130137 'over_damage_high_score ' => 0 ,
131138 ],
132139 'Expert ' => [
133140 'battle_high_score ' => 0 ,
134141 'technical_high_score ' => 0 ,
142+ 'platinum_score ' => 0 ,
135143 'over_damage_high_score ' => 0 ,
136144 ],
137145 'Master ' => [
138146 'battle_high_score ' => 0 ,
139147 'technical_high_score ' => 0 ,
148+ 'platinum_score ' => 0 ,
140149 'over_damage_high_score ' => 0 ,
141150 ],
142151 'Lunatic ' => [
143152 'battle_high_score ' => 0 ,
144153 'technical_high_score ' => 0 ,
154+ 'platinum_score ' => 0 ,
145155 'over_damage_high_score ' => 0 ,
146156 ],
147157 ]
@@ -192,6 +202,7 @@ function shapingKeys($array){
192202 foreach ($ temp as $ difficulty => $ value ) {
193203 $ score ['new ' ][$ difficultyToStr [$ difficulty ]]['battle_high_score ' ] += $ value ->battle_high_score ;
194204 $ score ['new ' ][$ difficultyToStr [$ difficulty ]]['technical_high_score ' ] += $ value ->technical_high_score ;
205+ $ score ['new ' ][$ difficultyToStr [$ difficulty ]]['platinum_score ' ] += $ value ->platinum_score ;
195206 $ score ['new ' ][$ difficultyToStr [$ difficulty ]]['over_damage_high_score ' ] += $ value ->over_damage_high_score ;
196207
197208 if (!array_key_exists ($ music , $ old ) || !array_key_exists ($ difficulty , $ old [$ music ])){
@@ -201,6 +212,7 @@ function shapingKeys($array){
201212 $ progress [$ music ][$ difficulty ]["new " ] = $ value ;
202213 $ progress [$ music ][$ difficulty ]["difference " ]['battle_high_score ' ] = "+ " . number_format ($ value ->battle_high_score );
203214 $ progress [$ music ][$ difficulty ]["difference " ]['technical_high_score ' ] = "+ " . number_format ($ value ->technical_high_score );
215+ $ progress [$ music ][$ difficulty ]["difference " ]['platinum_score ' ] = "+ " . number_format ($ value ->platinum_score );
204216 $ progress [$ music ][$ difficulty ]["difference " ]['over_damage_high_score ' ] = "+ " . ($ value ->over_damage_high_score ) . "% " ;
205217 $ progress [$ music ][$ difficulty ]["difference " ]['technical_high_score_rank ' ] = "N " . " → " . $ value ->technical_high_score_rank ;
206218 $ progress [$ music ][$ difficulty ]["difference " ]['is_update_technical_high_score_rank ' ] = "update " ;
@@ -218,11 +230,13 @@ function shapingKeys($array){
218230 }else {
219231 $ score ['old ' ][$ difficultyToStr [$ difficulty ]]['battle_high_score ' ] += $ old [$ music ][$ difficulty ]->battle_high_score ;
220232 $ score ['old ' ][$ difficultyToStr [$ difficulty ]]['technical_high_score ' ] += $ old [$ music ][$ difficulty ]->technical_high_score ;
233+ $ score ['old ' ][$ difficultyToStr [$ difficulty ]]['platinum_score ' ] += $ old [$ music ][$ difficulty ]->platinum_score ;
221234 $ score ['old ' ][$ difficultyToStr [$ difficulty ]]['over_damage_high_score ' ] += $ old [$ music ][$ difficulty ]->over_damage_high_score ;
222235
223236 if ($ old [$ music ][$ difficulty ]->over_damage_high_score < $ value ->over_damage_high_score
224237 || $ old [$ music ][$ difficulty ]->battle_high_score < $ value ->battle_high_score
225238 || $ old [$ music ][$ difficulty ]->technical_high_score < $ value ->technical_high_score
239+ || $ old [$ music ][$ difficulty ]->platinum_score < $ value ->platinum_score
226240 || $ old [$ music ][$ difficulty ]->full_bell < $ value ->full_bell
227241 || $ old [$ music ][$ difficulty ]->full_combo < $ value ->full_combo
228242 || $ old [$ music ][$ difficulty ]->all_break < $ value ->all_break ){
@@ -232,6 +246,7 @@ function shapingKeys($array){
232246 $ progress [$ music ][$ difficulty ]["new " ] = $ value ;
233247 $ progress [$ music ][$ difficulty ]["difference " ]['battle_high_score ' ] = "+ " . number_format ($ value ->battle_high_score );
234248 $ progress [$ music ][$ difficulty ]["difference " ]['technical_high_score ' ] = "+ " . number_format ($ value ->technical_high_score );
249+ $ progress [$ music ][$ difficulty ]["difference " ]['platinum_score ' ] = "+ " . number_format ($ value ->platinum_score );
235250 $ progress [$ music ][$ difficulty ]["difference " ]['over_damage_high_score ' ] = "+ " . ($ value ->over_damage_high_score ) . "% " ;
236251 $ progress [$ music ][$ difficulty ]["difference " ]['technical_high_score_rank ' ] = "N " . " → " . $ value ->technical_high_score_rank ;
237252 $ progress [$ music ][$ difficulty ]["difference " ]['is_update_technical_high_score_rank ' ] = "update " ;
@@ -255,7 +270,11 @@ function shapingKeys($array){
255270 }
256271 }
257272 if ($ request ->filter === "ts " ){
258- if ($ old [$ music ][$ difficulty ]->technical_high_score >= $ value ->technical_high_score ){
273+ if ($ old [$ music ][$ difficulty ]->technical_high_score >= $ value ->technical_high_score
274+ && $ old [$ music ][$ difficulty ]->platinum_score >= $ value ->platinum_score
275+ && $ old [$ music ][$ difficulty ]->full_bell >= $ value ->full_bell
276+ && $ old [$ music ][$ difficulty ]->full_combo >= $ value ->full_combo
277+ && $ old [$ music ][$ difficulty ]->all_break >= $ value ->all_break ){
259278 continue ;
260279 }
261280 }
@@ -267,6 +286,7 @@ function shapingKeys($array){
267286
268287 $ progress [$ music ][$ difficulty ]["difference " ]['battle_high_score ' ] = ($ value ->battle_high_score - $ old [$ music ][$ difficulty ]->battle_high_score ) != 0 ? "+ " . number_format ($ value ->battle_high_score - $ old [$ music ][$ difficulty ]->battle_high_score ) : "" ;
269288 $ progress [$ music ][$ difficulty ]["difference " ]['technical_high_score ' ] = ($ value ->technical_high_score - $ old [$ music ][$ difficulty ]->technical_high_score ) != 0 ? "+ " . number_format ($ value ->technical_high_score - $ old [$ music ][$ difficulty ]->technical_high_score ) : "" ;
289+ $ progress [$ music ][$ difficulty ]["difference " ]['platinum_score ' ] = ($ value ->platinum_score - $ old [$ music ][$ difficulty ]->platinum_score ) != 0 ? "+ " . number_format ($ value ->platinum_score - $ old [$ music ][$ difficulty ]->platinum_score ) : "" ;
270290 $ progress [$ music ][$ difficulty ]["difference " ]['over_damage_high_score ' ] = ($ value ->over_damage_high_score - $ old [$ music ][$ difficulty ]->over_damage_high_score ) != 0 ? "+ " . ($ value ->over_damage_high_score - $ old [$ music ][$ difficulty ]->over_damage_high_score ) . "% " : "" ;
271291 $ progress [$ music ][$ difficulty ]["difference " ]['technical_high_score_rank ' ] = $ old [$ music ][$ difficulty ]->technical_high_score_rank . " → " . $ value ->technical_high_score_rank ;
272292 $ progress [$ music ][$ difficulty ]["difference " ]['is_update_technical_high_score_rank ' ] = ($ old [$ music ][$ difficulty ]->technical_high_score_rank != $ value ->technical_high_score_rank ) ? "update " : "" ;
@@ -288,41 +308,49 @@ function shapingKeys($array){
288308 }
289309 $ score ['new ' ]['Total ' ]['battle_high_score ' ] = $ score ['new ' ]['Basic ' ]['battle_high_score ' ] + $ score ['new ' ]['Advanced ' ]['battle_high_score ' ] + $ score ['new ' ]['Expert ' ]['battle_high_score ' ] + $ score ['new ' ]['Master ' ]['battle_high_score ' ] + $ score ['new ' ]['Lunatic ' ]['battle_high_score ' ];
290310 $ score ['new ' ]['Total ' ]['technical_high_score ' ] = $ score ['new ' ]['Basic ' ]['technical_high_score ' ] + $ score ['new ' ]['Advanced ' ]['technical_high_score ' ] + $ score ['new ' ]['Expert ' ]['technical_high_score ' ] + $ score ['new ' ]['Master ' ]['technical_high_score ' ] + $ score ['new ' ]['Lunatic ' ]['technical_high_score ' ];
311+ $ score ['new ' ]['Total ' ]['platinum_score ' ] = $ score ['new ' ]['Basic ' ]['platinum_score ' ] + $ score ['new ' ]['Advanced ' ]['platinum_score ' ] + $ score ['new ' ]['Expert ' ]['platinum_score ' ] + $ score ['new ' ]['Master ' ]['platinum_score ' ] + $ score ['new ' ]['Lunatic ' ]['platinum_score ' ];
291312 $ score ['new ' ]['Total ' ]['over_damage_high_score ' ] = $ score ['new ' ]['Basic ' ]['over_damage_high_score ' ] + $ score ['new ' ]['Advanced ' ]['over_damage_high_score ' ] + $ score ['new ' ]['Expert ' ]['over_damage_high_score ' ] + $ score ['new ' ]['Master ' ]['over_damage_high_score ' ] + $ score ['new ' ]['Lunatic ' ]['over_damage_high_score ' ];
292313
293314 $ score ['old ' ]['Total ' ]['battle_high_score ' ] = $ score ['old ' ]['Basic ' ]['battle_high_score ' ] + $ score ['old ' ]['Advanced ' ]['battle_high_score ' ] + $ score ['old ' ]['Expert ' ]['battle_high_score ' ] + $ score ['old ' ]['Master ' ]['battle_high_score ' ] + $ score ['old ' ]['Lunatic ' ]['battle_high_score ' ];
294315 $ score ['old ' ]['Total ' ]['technical_high_score ' ] = $ score ['old ' ]['Basic ' ]['technical_high_score ' ] + $ score ['old ' ]['Advanced ' ]['technical_high_score ' ] + $ score ['old ' ]['Expert ' ]['technical_high_score ' ] + $ score ['old ' ]['Master ' ]['technical_high_score ' ] + $ score ['old ' ]['Lunatic ' ]['technical_high_score ' ];
316+ $ score ['old ' ]['Total ' ]['platinum_score ' ] = $ score ['old ' ]['Basic ' ]['platinum_score ' ] + $ score ['old ' ]['Advanced ' ]['platinum_score ' ] + $ score ['old ' ]['Expert ' ]['platinum_score ' ] + $ score ['old ' ]['Master ' ]['platinum_score ' ] + $ score ['old ' ]['Lunatic ' ]['platinum_score ' ];
295317 $ score ['old ' ]['Total ' ]['over_damage_high_score ' ] = $ score ['old ' ]['Basic ' ]['over_damage_high_score ' ] + $ score ['old ' ]['Advanced ' ]['over_damage_high_score ' ] + $ score ['old ' ]['Expert ' ]['over_damage_high_score ' ] + $ score ['old ' ]['Master ' ]['over_damage_high_score ' ] + $ score ['old ' ]['Lunatic ' ]['over_damage_high_score ' ];
296318
297319 $ score ['difference ' ] = [
298320 'Total ' => [
299321 'battle_high_score ' => $ score ['new ' ]['Total ' ]['battle_high_score ' ] - $ score ['old ' ]['Total ' ]['battle_high_score ' ],
300322 'technical_high_score ' => $ score ['new ' ]['Total ' ]['technical_high_score ' ] - $ score ['old ' ]['Total ' ]['technical_high_score ' ],
323+ 'platinum_score ' => $ score ['new ' ]['Total ' ]['platinum_score ' ] - $ score ['old ' ]['Total ' ]['platinum_score ' ],
301324 'over_damage_high_score ' => $ score ['new ' ]['Total ' ]['over_damage_high_score ' ] - $ score ['old ' ]['Total ' ]['over_damage_high_score ' ],
302325 ],
303326 'Basic ' => [
304327 'battle_high_score ' => $ score ['new ' ]['Basic ' ]['battle_high_score ' ] - $ score ['old ' ]['Basic ' ]['battle_high_score ' ],
305328 'technical_high_score ' => $ score ['new ' ]['Basic ' ]['technical_high_score ' ] - $ score ['old ' ]['Basic ' ]['technical_high_score ' ],
329+ 'platinum_score ' => $ score ['new ' ]['Basic ' ]['platinum_score ' ] - $ score ['old ' ]['Basic ' ]['platinum_score ' ],
306330 'over_damage_high_score ' => $ score ['new ' ]['Basic ' ]['over_damage_high_score ' ] - $ score ['old ' ]['Basic ' ]['over_damage_high_score ' ],
307331 ],
308332 'Advanced ' => [
309333 'battle_high_score ' => $ score ['new ' ]['Advanced ' ]['battle_high_score ' ] - $ score ['old ' ]['Advanced ' ]['battle_high_score ' ],
310334 'technical_high_score ' => $ score ['new ' ]['Advanced ' ]['technical_high_score ' ] - $ score ['old ' ]['Advanced ' ]['technical_high_score ' ],
335+ 'platinum_score ' => $ score ['new ' ]['Advanced ' ]['platinum_score ' ] - $ score ['old ' ]['Advanced ' ]['platinum_score ' ],
311336 'over_damage_high_score ' => $ score ['new ' ]['Advanced ' ]['over_damage_high_score ' ] - $ score ['old ' ]['Advanced ' ]['over_damage_high_score ' ],
312337 ],
313338 'Expert ' => [
314339 'battle_high_score ' => $ score ['new ' ]['Expert ' ]['battle_high_score ' ] - $ score ['old ' ]['Expert ' ]['battle_high_score ' ],
315340 'technical_high_score ' => $ score ['new ' ]['Expert ' ]['technical_high_score ' ] - $ score ['old ' ]['Expert ' ]['technical_high_score ' ],
341+ 'platinum_score ' => $ score ['new ' ]['Expert ' ]['platinum_score ' ] - $ score ['old ' ]['Expert ' ]['platinum_score ' ],
316342 'over_damage_high_score ' => $ score ['new ' ]['Expert ' ]['over_damage_high_score ' ] - $ score ['old ' ]['Expert ' ]['over_damage_high_score ' ],
317343 ],
318344 'Master ' => [
319345 'battle_high_score ' => $ score ['new ' ]['Master ' ]['battle_high_score ' ] - $ score ['old ' ]['Master ' ]['battle_high_score ' ],
320346 'technical_high_score ' => $ score ['new ' ]['Master ' ]['technical_high_score ' ] - $ score ['old ' ]['Master ' ]['technical_high_score ' ],
347+ 'platinum_score ' => $ score ['new ' ]['Master ' ]['platinum_score ' ] - $ score ['old ' ]['Master ' ]['platinum_score ' ],
321348 'over_damage_high_score ' => $ score ['new ' ]['Master ' ]['over_damage_high_score ' ] - $ score ['old ' ]['Master ' ]['over_damage_high_score ' ],
322349 ],
323350 'Lunatic ' => [
324351 'battle_high_score ' => $ score ['new ' ]['Lunatic ' ]['battle_high_score ' ] - $ score ['old ' ]['Lunatic ' ]['battle_high_score ' ],
325352 'technical_high_score ' => $ score ['new ' ]['Lunatic ' ]['technical_high_score ' ] - $ score ['old ' ]['Lunatic ' ]['technical_high_score ' ],
353+ 'platinum_score ' => $ score ['new ' ]['Lunatic ' ]['platinum_score ' ] - $ score ['old ' ]['Lunatic ' ]['platinum_score ' ],
326354 'over_damage_high_score ' => $ score ['new ' ]['Lunatic ' ]['over_damage_high_score ' ] - $ score ['old ' ]['Lunatic ' ]['over_damage_high_score ' ],
327355 ]
328356 ];
0 commit comments