diff --git a/packages/schemas/src/player/gamemodes/arcade/mode.ts b/packages/schemas/src/player/gamemodes/arcade/mode.ts index 11aacdcd6..bf9dda248 100644 --- a/packages/schemas/src/player/gamemodes/arcade/mode.ts +++ b/packages/schemas/src/player/gamemodes/arcade/mode.ts @@ -739,7 +739,8 @@ export class PartyGames { @Field() public workshopWins: number; - @Field({ leaderboard: { formatter: formatRaceTime, sort: "ASC" } }) + // The goal of anvil spleef is to live the longest not the shortest so we sort in descending order + @Field({ leaderboard: { formatter: formatRaceTime } }) public anvilSpleefBestTime: number; @Field({ leaderboard: { formatter: formatRaceTime, sort: "ASC" } }) @@ -757,7 +758,8 @@ export class PartyGames { @Field({ leaderboard: { formatter: formatRaceTime, sort: "ASC" } }) public jungleJumpBestTime: number; - @Field({ leaderboard: { formatter: formatRaceTime, sort: "ASC" } }) + // The goal of bombardment is to live the longest not the shortest so we sort in descending order + @Field({ leaderboard: { formatter: formatRaceTime } }) public bombardmentBestTime: number; @Field({ leaderboard: { formatter: formatRaceTime, sort: "ASC" } }) diff --git a/packages/schemas/src/player/gamemodes/woolgames/index.ts b/packages/schemas/src/player/gamemodes/woolgames/index.ts index 9784cf8e8..18d30b091 100644 --- a/packages/schemas/src/player/gamemodes/woolgames/index.ts +++ b/packages/schemas/src/player/gamemodes/woolgames/index.ts @@ -13,6 +13,7 @@ import { Field } from "#metadata"; import { Progression } from "#progression"; import { SheepWars } from "./sheepwars.js"; import { WoolWars } from "./woolwars.js"; +import { add } from "@statsify/math"; import { getExpReq, getFormattedLevel, getLevel } from "./util.js"; export const WOOLGAMES_MODES = new GameModes([ @@ -49,7 +50,7 @@ export class WoolGames { fieldName: "Level", hidden: true, formatter: (exp: number) => getFormattedLevel(Math.floor(getLevel(exp))), - additionalFields: ["this.overall.wins", "this.overall.kills", "this.overall.kdr"], + additionalFields: ["this.wins", "this.playtime"], }, historical: { hidden: false, @@ -75,6 +76,9 @@ export class WoolGames { @Field({ leaderboard: { formatter: formatTime }, historical: { enabled: false } }) public playtime: number; + @Field() + public wins: number; + @Field({ leaderboard: { name: "WoolWars" } }) public woolwars: WoolWars; @@ -106,6 +110,7 @@ export class WoolGames { this.woolwars = new WoolWars(data.wool_wars); this.sheepwars = new SheepWars(data.sheep_wars, ap); this.captureTheWool = new CaptureTheWool(data.capture_the_wool?.stats); + this.wins = add(this.woolwars.overall.wins, this.sheepwars.wins, this.captureTheWool.wins); } }