feat: speed definitions

This commit is contained in:
TrèsAbhi committed 2024-02-05 12:57:03 -06:00
1 parent 0260fc6fbc
commit afe041f969
2 files changed
+12

No files matched your search

+8
View File
@@ -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,
+4
View File
@@ -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;