We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcfd55c commit 111b25eCopy full SHA for 111b25e
apps/discord-bot/src/commands/quake/quake.profile.tsx
@@ -49,7 +49,7 @@ export const QuakeProfile = ({
49
<Table.table>
50
<Table.tr>
51
<Table.td title={t("stats.wins")} value={t(stats.wins)} color="§a" />
52
- <Table.td title={t("stats.winRate")} value={`${stats.winRate}%`} color="§c" />
+ <Table.td title={t("stats.kwr")} value={t(stats.kwr)} color="§c" />
53
<Table.td
54
title={t("stats.killstreaks")}
55
value={t(stats.killstreaks)}
apps/discord-bot/src/commands/status/status.profile.tsx
@@ -34,7 +34,7 @@ const OnlineTable = ({ status, t }: StatusTableProps) => (
34
35
title={t("stats.game")}
36
value={FormattedGame[status.game.id]}
37
- color="§f"
+ color="§e"
38
t:ignore
39
/>
40
<If condition={status.mode}>
@@ -68,7 +68,7 @@ const OfflineTable = ({ status, t }: StatusTableProps) => (
68
69
title={t("stats.lastGame")}
70
value={FormattedGame[status.actions.lastGame.id]}
71
+ color="§a"
72
73
74
</Table.tr>
locales/en-US/default.json
@@ -586,6 +586,7 @@
586
"killsAsSurvivor": "Kills as Survivor",
587
"killstreaks": "Killstreaks",
588
"kit": "Current Kit",
589
+ "kwr": "KWR",
590
"lapsCompleted": "Laps",
591
"lastAction": "Last Action",
592
"lastActionTime": "Last Action Time",
@@ -664,7 +665,6 @@
664
665
"version": "Version",
666
"votes": "Votes",
667
"wallsFaced": "Walls Faced",
- "winRate": "Win Rate",
668
"wins": "Wins",
669
"winstreak": "Winstreak",
670
"witherDamage": "Wither Damage",
packages/schemas/src/player/gamemodes/arcade/mode.ts
@@ -114,6 +114,7 @@ export class EnderSpleef {
114
@Field({ leaderboard: { enabled: false } })
115
public powerupActivations: number;
116
117
+ @Field()
118
public blocksBroken: number;
119
120
public constructor(data: APIData) {
packages/schemas/src/player/gamemodes/general/index.ts
@@ -46,7 +46,7 @@ export class General {
46
@Field()
47
public ranksGifted: number;
48
- @Field({ leaderboard: { fieldName: "Total Tokens" } })
+ @Field({ leaderboard: { fieldName: "Tokens", name: "Classic Tokens" } })
public classicTokens: number;
public constructor(legacy: APIData, data: APIData = {}) {
packages/schemas/src/player/gamemodes/murdermystery/mode.ts
@@ -160,7 +160,7 @@ export class AssassinsMurderMysteryMode extends BaseMurderMysteryMode {
160
public constructor(data: APIData, mode: string) {
161
super(data, mode);
162
163
- this.kills = data.trap_kills_MURDER_ASSASSINS;
+ this.kills = data.kills_MURDER_ASSASSINS;
164
this.deaths = data.deaths_MURDER_ASSASSINS;
165
this.kdr = ratio(this.kills, this.deaths);
166
packages/schemas/src/player/gamemodes/quake/mode.ts
@@ -23,20 +23,20 @@ export class QuakeMode {
23
24
public kdr: number;
25
26
- @Field({ leaderboard: { enabled: false } })
27
public headshots: number;
28
29
30
public killstreaks: number;
31
32
33
public shotsFired: number;
+ @Field({ leaderboard: { fieldName: "2017+ Kills", name: "2017+ Kills" } })
public postUpdateKills: number;
- @Field({ leaderboard: { enabled: false }, store: { default: 100 } })
- public winRate: number;
+ @Field({ leaderboard: { enabled: false } })
+ public kwr: number;
41
42
public quakeShotAccuracy: number;
@@ -56,7 +56,7 @@ export class QuakeMode {
56
57
public static applyRatios(data: QuakeMode) {
58
data.kdr = ratio(data.kills, data.deaths);
59
- data.winRate = Math.min(ratio(25, ratio(data.kills, data.wins), 100), 100);
+ data.kwr = ratio(data.kills, data.wins);
60
data.quakeShotAccuracy = ratio(data.postUpdateKills, data.shotsFired, 100);
61
}
62
packages/schemas/src/ratios.ts
@@ -16,6 +16,7 @@ export type Ratio = [
16
17
export const LEADERBOARD_RATIOS: Ratio[] = [
18
["wins", "losses", "wlr", "WLR"],
19
+ ["kills", "wins", "kwr", "KWR"],
20
["kills", "deaths", "kdr", "KDR"],
21
["finalKills", "finalDeaths", "fkdr", "FKDR"],
22
["bedsBroken", "bedsLost", "bblr", "BBLR"],
@@ -28,7 +29,6 @@ export const LEADERBOARD_RATIO_KEYS = LEADERBOARD_RATIOS.map(
const EXTRA_RATIOS: Ratio[] = [
["kills", "shotsFired", "shotAccuracy", "Shot Accuracy", 100],
["postUpdateKills", "shotsFired", "quakeShotAccuracy", "Shot Accuracy", 100],
- ["wins", "gamesPlayed", "winRate", "Win Rate", 100],
["gold", "gamesPlayed", "goldRate", "Gold Rate", 100],
["total", "gamesPlayed", "trophyRate", "Trophy Rate", 100],
];
0 commit comments