Module:Vehicles/data

From Dune: Awakening Community Wiki
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:

  • ground
  • aerial
  • special

Second key

Vehicle name, derived by slugifying the vehicle's English name. Examples:

  • sandbike
  • assault-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-groundcar
four-man-groundcar
light-ornithopter
medium-ornithopter
minimum_tier
string
The lowest progression tier at which the vehicle schematics are unlocked.
Examples:
Copper
Steel
Duraluminum
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:
1
3-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",
        },
    },
}