feat: logs

This commit is contained in:
TrèsAbhi committed 2024-03-16 15:10:55 -05:00
1 parent 04cd205fee
commit dba5a0a2cd
3 files changed
+22 -9

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
# Blitzkrieg 1.17.0
A preview command and a touchup.
## Features
- Added `/research` in preview only accessible in the official Discord server.
- More details will be posted when the command is made public.
## Changes
- `/owned-tanks` now returns a simple text message listing all the tanks instead of an image.
- This is meant to improve the readability and ease of copying.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "blitzkrieg",
"version": "1.16.4",
"version": "1.17.0",
"description": "🎉 Tools for everything World of Tanks Blitz",
"main": "src/server.ts",
"type": "module",
+8 -8
View File
@@ -1,8 +1,8 @@
import { readFile } from 'fs/promises';
import { deburr } from 'lodash';
import { Vector2Tuple } from 'three';
import { TankClass, TreeType } from '../../../components/Tanks';
import { superDecompress } from '../superDecompress';
import { asset } from '../asset';
import { fetchCdonLz4 } from '../fetchCdonLz4';
import { TIERS } from './constants';
export type ShellType = 'ap' | 'ap_cr' | 'hc' | 'he';
@@ -142,14 +142,14 @@ export type ShellDefinition = {
explosionRadius?: number;
};
// export const tankDefinitions = fetchCdonLz4<TankDefinitions>(
// asset('definitions/tanks.cdon.lz4'),
// );
export const tankDefinitions = readFile('test.tanks.cdon.lz4').then((data) =>
superDecompress<TankDefinitions>(data.buffer),
export const tankDefinitions = fetchCdonLz4<TankDefinitions>(
asset('definitions/tanks.cdon.lz4'),
);
// export const tankDefinitions = readFile('test.tanks.cdon.lz4').then((data) =>
// superDecompress<TankDefinitions>(data.buffer),
// );
const entries = new Promise<TankDefinition[]>(async (resolve) => {
resolve(Object.entries(await tankDefinitions).map(([, entry]) => entry));
});