Skip to content

Mega Walls computed stats

Computed Mega Walls statistics, derived from the parsed MegaWallsStats block. They are always present on an enriched player as player.stats.megaWalls.computed (when the raw megaWalls block exists), produced by computeMegaWalls(raw).

All ratios are rounded to 2 decimals. A ratio with a zero denominator yields the numerator (K/D convention). *Share fields are percentages from 0 to 100 (0 when the whole is 0). *ForNext* fields are the additional amount needed to reach the next whole-number value of the corresponding ratio (0 when the denominator is 0).

Overall final kills, final deaths, final assists, and wither damage are the sum of the current stats block and the legacy top-level counters (finalKillsLegacy, finalDeathsLegacy, finalAssistsLegacy, witherDamageLegacy).

MegaWallsComputed

ts
export interface MegaWallsComputed {
  readonly kdr: number;
  readonly wlr: number;
  readonly fkdr: number;
  readonly finalKills: number;
  readonly finalDeaths: number;
  readonly finalAssists: number;
  readonly witherDamage: number;
  readonly winRate: number;
  readonly killsPerGame: number;
  readonly finalKillsPerGame: number;
  readonly kda: number;
  readonly meleeKillShare: number;
  readonly blockPlaceBreakRatio: number;
  readonly witherDamagePerGame: number;
  readonly finalsForNextFkdr: number;
  readonly killsForNextKdr: number;
  readonly winsForNextWlr: number;
  readonly favoriteKit: string;
  readonly modes: MegaWallsModesComputed;
  readonly byKit: Readonly<Record<string, MegaWallsRatioSet>>;
  readonly byClass: Readonly<Record<string, MegaWallsClassComputed>>;
}

In the table below, kills, deaths, wins, losses, assists, and games are the overall values from the stats block (stats.kills.overall and so on). finalKills, finalDeaths, finalAssists, and witherDamage include the legacy counters as described above.

FieldFormulaMeaning
kdrkills / deathsKill/death ratio (bare ratio)
wlrwins / lossesWin/loss ratio (bare ratio)
fkdrfinalKills / finalDeathsFinal kill/final death ratio (bare ratio)
finalKillsstats.finalKills.overall + finalKillsLegacyTotal final kills including legacy
finalDeathsstats.finalDeaths.overall + finalDeathsLegacyTotal final deaths including legacy
finalAssistsstats.finalAssists.overall + finalAssistsLegacyTotal final assists including legacy
witherDamagestats.witherDamage.overall + witherDamageLegacyTotal wither damage including legacy
winRatewins / (wins + losses)Fraction of games won (bare ratio, not a percent)
killsPerGamekills / gamesAverage kills per game played
finalKillsPerGamefinalKills / gamesAverage final kills per game played
kda(kills + assists) / deathsKills plus assists per death (bare ratio)
meleeKillShare100 * stats.kills.melee.overall / killsPercent (0-100) of kills that were melee kills
blockPlaceBreakRatiostats.blocksPlaced.overall / stats.blocksBroken.overallBlocks placed per block broken (bare ratio)
witherDamagePerGamewitherDamage / gamesAverage wither damage per game played
finalsForNextFkdrneededForNextWholeRatio(finalKills, finalDeaths)Final kills needed to reach the next whole FKDR
killsForNextKdrneededForNextWholeRatio(kills, deaths)Kills needed to reach the next whole KDR
winsForNextWlrneededForNextWholeRatio(wins, losses)Wins needed to reach the next whole WLR
favoriteKitkit name with the highest stats.gamesPlayed.overall, only counting kits with more than 0 gamesMost-played kit; "" when no kit has games
modessee MegaWallsModesComputedPer-mode ratio sets (standard, faceOff, gvg)
byKitMegaWallsRatioSet per kit, from each kit's overall statsRatio set for every kit in raw.kits, keyed by kit name
byClassMegaWallsClassComputed per classExtended per-class ratios for every class in raw.byClass, keyed by class name

MegaWallsModesComputed

ts
export interface MegaWallsModesComputed {
  readonly standard: MegaWallsRatioSet;
  readonly faceOff: MegaWallsRatioSet;
  readonly gvg: MegaWallsRatioSet;
}
FieldFormulaMeaning
standardratio set over the standard values of the stats blockRatios for Standard mode
faceOffratio set over the faceOff values of the stats blockRatios for Face Off mode
gvgratio set over the gvg values of the stats blockRatios for Guild vs Guild mode

MegaWallsRatioSet

A compact ratio set. Used for each mode in modes (built from that mode's slice of the stats block) and for each kit in byKit (built from the kit's overall stats).

ts
export interface MegaWallsRatioSet {
  readonly kdr: number;
  readonly wlr: number;
  readonly fkdr: number;
}
FieldFormulaMeaning
kdrkills[mode] / deaths[mode]Kill/death ratio for the slice (bare ratio)
wlrwins[mode] / losses[mode]Win/loss ratio for the slice (bare ratio)
fkdrfinalKills[mode] / finalDeaths[mode]Final kill/final death ratio for the slice (bare ratio)

MegaWallsClassComputed

Per-class ratios. One entry per class in raw.byClass; each formula uses that class's own kills, deaths, wins, losses, and assists.

ts
export interface MegaWallsClassComputed {
  readonly kdr: number;
  readonly wlr: number;
  readonly winRate: number;
  readonly kda: number;
  readonly killsForNextKdr: number;
  readonly winsForNextWlr: number;
}
FieldFormulaMeaning
kdrkills / deathsClass kill/death ratio (bare ratio)
wlrwins / lossesClass win/loss ratio (bare ratio)
winRatewins / (wins + losses)Fraction of the class's games won (bare ratio)
kda(kills + assists) / deathsClass kills plus assists per death (bare ratio)
killsForNextKdrneededForNextWholeRatio(kills, deaths)Kills needed to reach the class's next whole KDR
winsForNextWlrneededForNextWholeRatio(wins, losses)Wins needed to reach the class's next whole WLR

Released under the MIT License.