mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +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;
|
still: number;
|
||||||
firePenalty: number;
|
firePenalty: number;
|
||||||
};
|
};
|
||||||
|
speedLimits: {
|
||||||
|
forward: number;
|
||||||
|
backward: number;
|
||||||
|
};
|
||||||
consumableSlots: number;
|
consumableSlots: number;
|
||||||
provisionSlots: number;
|
provisionSlots: number;
|
||||||
optDevicePreset: string;
|
optDevicePreset: string;
|
||||||
@@ -404,6 +408,10 @@ export async function definitions(production: boolean) {
|
|||||||
|
|
||||||
tankDefinitions[tankId] = {
|
tankDefinitions[tankId] = {
|
||||||
health: tankDefinition.root.hull.maxHealth,
|
health: tankDefinition.root.hull.maxHealth,
|
||||||
|
speed: {
|
||||||
|
forwards: tankDefinition.root.speedLimits.forward,
|
||||||
|
backwards: tankDefinition.root.speedLimits.backward,
|
||||||
|
},
|
||||||
id: tankId,
|
id: tankId,
|
||||||
equipment,
|
equipment,
|
||||||
consumables: tankDefinition.root.consumableSlots,
|
consumables: tankDefinition.root.consumableSlots,
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ export interface TankDefinition {
|
|||||||
turrets: TurretDefinition[];
|
turrets: TurretDefinition[];
|
||||||
engines: EngineDefinition[];
|
engines: EngineDefinition[];
|
||||||
price: TankDefinitionPrice;
|
price: TankDefinitionPrice;
|
||||||
|
speed: {
|
||||||
|
forwards: number;
|
||||||
|
backwards: number;
|
||||||
|
};
|
||||||
camouflage: {
|
camouflage: {
|
||||||
still: number;
|
still: number;
|
||||||
moving: number;
|
moving: number;
|
||||||
|
|||||||
Reference in new issue
Block a user