mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8a5f57787 | ||
|
|
13651650ab |
No files matched your search
Vendored
+1
@@ -24,6 +24,7 @@
|
|||||||
"fullstats",
|
"fullstats",
|
||||||
"fuzzysort",
|
"fuzzysort",
|
||||||
"gamemode",
|
"gamemode",
|
||||||
|
"haha",
|
||||||
"immer",
|
"immer",
|
||||||
"JOINTINDEX",
|
"JOINTINDEX",
|
||||||
"JOINTWEIGHT",
|
"JOINTWEIGHT",
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# Blitzkrieg 1.15.13
|
||||||
|
|
||||||
|
I have run out of things to say here. This patch fixes like 1 thing haha.
|
||||||
|
|
||||||
|
# Technical Fixes
|
||||||
|
|
||||||
|
- Tank deltas are now filtered by last battle time
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "blitzkrieg",
|
"name": "blitzkrieg",
|
||||||
"version": "1.15.11",
|
"version": "1.15.13",
|
||||||
"description": "🎉 Tools for everything World of Tanks Blitz",
|
"description": "🎉 Tools for everything World of Tanks Blitz",
|
||||||
"main": "src/server.ts",
|
"main": "src/server.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ export default function SessionPage({ naked = true }: SessionPageProps) {
|
|||||||
|
|
||||||
list: (
|
list: (
|
||||||
Object.values(
|
Object.values(
|
||||||
deltaTankStats(session.tankStats, career),
|
deltaTankStats(session.tankStats, career, session.time / 1000),
|
||||||
) as IndividualTankStats[]
|
) as IndividualTankStats[]
|
||||||
).map((stats) => {
|
).map((stats) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -4,13 +4,17 @@ import {
|
|||||||
emptyIndividualTankStats,
|
emptyIndividualTankStats,
|
||||||
} from '../../types/tanksStats';
|
} from '../../types/tanksStats';
|
||||||
|
|
||||||
export function deltaTankStats(a: NormalizedTankStats, b: NormalizedTankStats) {
|
export function deltaTankStats(
|
||||||
|
a: NormalizedTankStats,
|
||||||
|
b: NormalizedTankStats,
|
||||||
|
time?: number,
|
||||||
|
) {
|
||||||
const bTanks = Object.keys(b);
|
const bTanks = Object.keys(b);
|
||||||
const changedTanks = bTanks.filter((id) => {
|
const changedTanks = bTanks.filter((id) => {
|
||||||
return (
|
return time === undefined
|
||||||
a[id as unknown as number]?.all.battles !==
|
? a[id as unknown as number]?.all.battles !==
|
||||||
b[id as unknown as number].all.battles
|
b[id as unknown as number].all.battles
|
||||||
);
|
: b[id as unknown as number].last_battle_time > time;
|
||||||
});
|
});
|
||||||
const diff = changedTanks.map((id) => {
|
const diff = changedTanks.map((id) => {
|
||||||
const aTank = a[id as unknown as number] ?? emptyIndividualTankStats;
|
const aTank = a[id as unknown as number] ?? emptyIndividualTankStats;
|
||||||
|
|||||||
Reference in new issue
Block a user