Module:Vehicles/data
Jump to navigation
Jump to search
Module:Vehicles/data
Dataset of vehicles.
Schema
The dataset is a two-level table, first keyed by vehicle type, and then keyed by slugified vehicle name, derived via common.slugify() from Module:Common.
For translation-compatibility, display strings are stored exclusively in MessageBundle:Vehicles.
First key
Vehicle type (slugified). Valid types:
groundaerialspecial
Second key
Vehicle name, derived by slugifying the vehicle's English name. Examples:
sandbikeassault-ornithopter
Record fields
Each vehicle record is a table with the following fields:
- category
- string
- Slugified official in-game vehicle classification indicating its size and role. Must correspond to a
category-<CATEGORY_SLUG>key in MessageBundle:Vehicles. - Examples:
one-man-groundcarfour-man-groundcarlight-ornithoptermedium-ornithopter
- minimum_tier
- string
- The lowest progression tier at which the vehicle schematics are unlocked.
- Examples:
CopperSteelDuraluminum
- crew_capacity
- string
- The number of seats available in the vehicle. If this value can vary due to installed modules, display it as a range (e.g. 3-4).
- Examples:
13-4
return {
ground = {
sandbike = {
category = "oneman_groundcar",
minimum_tier = "Copper",
crew_capacity = "1-2",
},
treadwheel = {
category = "oneman_groundcar",
minimum_tier = "Aluminum",
crew_capacity = "1-2",
},
buggy = {
category = "fourman_groundcar",
minimum_tier = "Steel",
crew_capacity = "3-4",
},
sandcrawler = {
category = "sandcrawler",
minimum_tier = "Plastanium",
crew_capacity = "2",
},
},
aerial = {
scout_ornithopter = {
category = "light_ornithopter",
minimum_tier = "Aluminum",
crew_capacity = "1",
},
assault_ornithopter = {
category = "medium_ornithopter",
minimum_tier = "Duraluminum",
crew_capacity = "4",
},
carrier_ornithopter = {
category = "carryall",
minimum_tier = "Plastanium",
crew_capacity = "6",
},
},
special = {
cargo_container = {
category = "module",
minimum_tier = "Plastanium",
crew_capacity = "N/A",
},
},
}