mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-18 11:25:25 +01:00
woohoo more data driven stats!
This commit is contained in:
1 parent
9c67fd3204
commit
95318d0a99
11 files changed
+737
-151
No files matched your search
@@ -0,0 +1,3 @@
|
||||
export function createTankEquipment() {
|
||||
return { 0: 0, 1: 1, 2: 0 };
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
import { createDefaultProvisions } from "@blitzkit/core";
|
||||
import type { TankDefinition } from "@blitzkit/protos";
|
||||
import { api } from "../api/dynamic";
|
||||
import { createTankEquipment } from "./createTankEquipment";
|
||||
import { createTankStatus } from "./createTankStatus";
|
||||
import type { TankState } from "./tankState";
|
||||
|
||||
@@ -27,13 +28,9 @@ export function createTankState(tank: TankDefinition) {
|
||||
shell: gun.shells[0].id,
|
||||
track: tank.tracks.at(-1)!.id,
|
||||
|
||||
environment: {
|
||||
assault_distance: (gun.assault_ranges?.ranges[0].distance ?? 0) / 2,
|
||||
},
|
||||
|
||||
speed: 0,
|
||||
|
||||
equipment: {},
|
||||
equipment: createTankEquipment(),
|
||||
status: createTankStatus(),
|
||||
|
||||
model: models.models[tank.id],
|
||||
|
||||
Reference in new issue
Block a user