mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: speed definitions
This commit is contained in:
1 parent
0260fc6fbc
commit
afe041f969
2 files changed
+12
No files matched your search
@@ -77,6 +77,10 @@ interface VehicleDefinitions {
|
||||
still: number;
|
||||
firePenalty: number;
|
||||
};
|
||||
speedLimits: {
|
||||
forward: number;
|
||||
backward: number;
|
||||
};
|
||||
consumableSlots: number;
|
||||
provisionSlots: number;
|
||||
optDevicePreset: string;
|
||||
@@ -404,6 +408,10 @@ export async function definitions(production: boolean) {
|
||||
|
||||
tankDefinitions[tankId] = {
|
||||
health: tankDefinition.root.hull.maxHealth,
|
||||
speed: {
|
||||
forwards: tankDefinition.root.speedLimits.forward,
|
||||
backwards: tankDefinition.root.speedLimits.backward,
|
||||
},
|
||||
id: tankId,
|
||||
equipment,
|
||||
consumables: tankDefinition.root.consumableSlots,
|
||||
|
||||
@@ -28,6 +28,10 @@ export interface TankDefinition {
|
||||
turrets: TurretDefinition[];
|
||||
engines: EngineDefinition[];
|
||||
price: TankDefinitionPrice;
|
||||
speed: {
|
||||
forwards: number;
|
||||
backwards: number;
|
||||
};
|
||||
camouflage: {
|
||||
still: number;
|
||||
moving: number;
|
||||
|
||||
Reference in new issue
Block a user