mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
"Mystery ratings" now appear in /rating
This commit is contained in:
parent
abc1d1789b
commit
7ec7f1fd3d
|
|
@ -556,7 +556,7 @@
|
|||
if (!data.length) {
|
||||
buffer += '<tr><td colspan="7"><em>This user has not played any ladder games yet.</em></td></tr>';
|
||||
} else {
|
||||
buffer += '<tr><th>Format</th><th>Elo</th><th>GXE</th><th>Glicko-1</th><th>W</th><th>L</th><th>T</th></tr>';
|
||||
'<tr><th>Format</th><th>Elo</th><th>GXE</th><th>Glicko-1</th><th>COIL</th><th>ARMS</th><th>W</th><th>L</th><th>T</th></tr>';
|
||||
for (var i=0; i<data.length; i++) {
|
||||
var row = data[i];
|
||||
buffer += '<tr><td>'+row.formatid+'</td><td><strong>'+Math.round(row.acre)+'</strong></td><td>'+Math.round(row.gxe,1)+'</td><td>';
|
||||
|
|
@ -565,6 +565,9 @@
|
|||
} else {
|
||||
buffer += '<em>'+Math.round(row.rpr)+'<small> ± '+Math.round(row.rprd)+'</small></em>';
|
||||
}
|
||||
var N=row.w+row.l+row.t;
|
||||
buffer += '<td>'+Math.round(40.0*row.gxe*Math.pow(2.0,-34.0/N),0)+'</td>';
|
||||
buffer += '<td>'+Math.round(1000.0+(2*row.gxe-100)*N/4.0,0)+'</td>';
|
||||
buffer += '</td><td>'+row.w+'</td><td>'+row.l+'</td><td>'+row.t+'</td></tr>';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user