include winrate in shown stats, compact display

This commit is contained in:
Maximilian Keßler 2022-10-22 11:36:42 +02:00
parent ac9fdb9f35
commit f8137f3664
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -1,6 +1,6 @@
// ==UserScript==
// @name onlinetichu.com card counter
// @version 1.3.3
// @version 1.3.4
// @description automatically count cards at onlinetichu.com
// @match *://*.onlinetichu.com/Site/Game/Table/*
// @author Maximilian Keßler
@ -216,8 +216,8 @@ function injectCounter() {
playerTichuCoefficient.id = direction + 'PlayerTichuCoefficient';
playerTichuCoefficient.innerText = '';
playerDiv.insertBefore(playerTichuCoefficient, playerTichu);
playerDiv.insertBefore(playerMyLevel, playerTichu);
playerDiv.insertBefore(playerTichuCoefficient, playerTichu);
}
patchPlayerStats('south');
@ -492,7 +492,7 @@ function injectCounter() {
for(i in dirs) {
stats = otc.stats[otc.playerNames[dirs[i]]];
if (stats != undefined) {
t = 'L ' + stats.general.level + ' A ' + stats.custom.abandonmentRate + '%';
t = 'L' + stats.general.level + ' A' + stats.custom.abandonmentRate + ' W' + stats.general.winningPercentage + '';
otc.$playerMyLevel[dirs[i]].text(t);
t = 'T' + stats.custom.tichuCoefficient + ' O' + stats.custom.oneTwoCoefficient;