Module:Vehicles/data

From Dune: Awakening Community Wiki
Jump to navigation Jump to search

Module:Vehicles/data

Dataset of vehicles.

Schema

Each vehicle is stored as a named table entry, where the key is the vehicle's name. Each table has the following fields:

image
string
File name of the vehicle render image.
type
string
Classification of the vehicle based on its mode of propulsion.
One of:
"Ground"
"Aerial"
category
string
Official in-game vehicle classification indicating its size and role.
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
backup_compatible
boolean
Denotes whether vehicle can be stored using the Vehicle Backup Tool.



local vehicles = {
  ["Sandbike"] = {
    image = "T_UI_IconVehCHSandBikeR_D.png",
    type = "Ground",
    category = "One-Man Groundcar",
    minimum_tier = "Copper",
    crew_capacity = "1-2",
    backup_compatible = true,
  },
  ["Treadwheel"] = {
    image = "T_UI_IconVehOETreadwheelR_D.png",
    type = "Ground",
    category = "One-Man Groundcar",
    minimum_tier = "Aluminum",
    crew_capacity = "1-2",
    backup_compatible = true,
  },
  ["Buggy"] = {
    image = "T_UI_IconVehCHBuggyR_D.png",
    type = "Ground",
    category = "Four-Man Groundcar",
    minimum_tier = "Steel",
    crew_capacity = "3-4",
    backup_compatible = false,
  },
  ["Sandcrawler"] = {
    image = "T_UI_IconVehCHSandCrawlerR_D.png",
    type = "Ground",
    category = "Sandcrawler",
    minimum_tier = "Plastanium",
    crew_capacity = "2",
    backup_compatible = false,
  },
  ["Scout Ornithopter"] = {
    image = "T_UI_IconVehCHOrniLightR_D.png",
    type = "Aerial",
    category = "Light Ornithopter",
    minimum_tier = "Aluminum",
    crew_capacity = "1",
    backup_compatible = true,
  },
  ["Assault Ornithopter"] = {
    image = "T_UI_IconVehCHOrniMediumR_D.png",
    type = "Aerial",
    category = "Medium Ornithopter",
    minimum_tier = "Duraluminum",
    crew_capacity = "4",
    backup_compatible = false,
  },
  ["Carrier Ornithopter"] = {
    image = "T_UI_IconVehCHOrniTransportR_D.png",
    type = "Aerial",
    category = "Carryall",
    minimum_tier = "Plastanium",
    crew_capacity = "6",
    backup_compatible = false,
  },
}

-- ==================================================
-- Fallback behaviour for unknown vehicle key input
-- Do not add vehicles below this point
-- ==================================================

local PLACEHOLDER = {
  type = "Unknown",
  category = "Unknown",
  minimum_tier = "Unknown",
  crew_capacity = "?",
  backup_compatible = false,
}

setmetatable(vehicles, { __index = function() return PLACEHOLDER end })
return vehicles