2024-09-17 22:50:34 -05:00
|
|
|
import type { TankopediaSortBy } from '.';
|
2024-07-09 14:43:33 -05:00
|
|
|
|
|
|
|
|
export const SORT_UNITS: Record<TankopediaSortBy, string | undefined> = {
|
|
|
|
|
'meta.none': undefined,
|
|
|
|
|
'survivability.health': 'hp',
|
|
|
|
|
'fire.aimTime': 's',
|
|
|
|
|
'fire.caliber': 'mm',
|
|
|
|
|
'fire.damage': 'hp',
|
2024-11-09 19:22:21 -06:00
|
|
|
'fire.moduleDamage': 'hp',
|
2024-07-09 14:43:33 -05:00
|
|
|
'fire.dispersionMoving': 'm',
|
|
|
|
|
'fire.dispersionStill': 'm',
|
|
|
|
|
'fire.dpm': undefined,
|
|
|
|
|
'fire.dpmPremium': undefined,
|
|
|
|
|
'fire.gunDepression': '°',
|
|
|
|
|
'fire.gunElevation': '°',
|
|
|
|
|
'fire.premiumPenetration': 'mm',
|
2025-07-27 20:31:21 -05:00
|
|
|
'fire.tertiaryPenetration': 'mm',
|
2024-07-09 14:43:33 -05:00
|
|
|
'fire.reload': 's',
|
|
|
|
|
'fire.shellVelocity': 'm/s',
|
2024-11-09 16:00:15 -06:00
|
|
|
'fire.shellRange': 'm',
|
2024-11-09 19:16:06 -06:00
|
|
|
'fire.shellCapacity': undefined,
|
2024-07-09 14:43:33 -05:00
|
|
|
'fire.standardPenetration': 'mm',
|
|
|
|
|
'maneuverability.backwardsSpeed': 'kph',
|
|
|
|
|
'maneuverability.forwardsSpeed': 'kph',
|
|
|
|
|
'maneuverability.power': 'hp',
|
|
|
|
|
'maneuverability.powerToWeight': 'hp/tn',
|
|
|
|
|
'maneuverability.traverseSpeed': '°/s',
|
|
|
|
|
'maneuverability.weight': 'tn',
|
|
|
|
|
'survivability.camouflageMoving': '%',
|
|
|
|
|
'survivability.camouflageShooting': '%',
|
|
|
|
|
'survivability.camouflageStill': '%',
|
|
|
|
|
'survivability.length': 'm',
|
|
|
|
|
'survivability.viewRange': 'm',
|
|
|
|
|
'survivability.volume': 'm^3',
|
|
|
|
|
};
|
2025-01-07 13:50:06 -06:00
|
|
|
|
2024-07-28 13:32:52 -05:00
|
|
|
export enum TankopediaDisplay {
|
|
|
|
|
Model,
|
|
|
|
|
DynamicArmor,
|
|
|
|
|
StaticArmor,
|
2024-12-01 19:42:27 -06:00
|
|
|
ShootingRange,
|
2024-07-28 13:32:52 -05:00
|
|
|
}
|