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;
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,