vehicles.module
README.md
vehicles
Every kind of vehicle in Verrane as the GAME sees it: what it carries, where
it fits, how the street reads Wren at its wheel, and what taking it means. Handling (mass, gears, grip) belongs
to the vehicle layer (vehiclesKit presets); `preset` names the body and tuning the host spawns for a type.
local Vehicles = require("metropolisGame.content.vehicles")
Vehicles.list Vehicles.byId("finch") Vehicles.borrowable() -- ids a player can take the wheel of
Entry fields (text in catalog `pm_world`: `vehicles.<id>.name`, `.line`, `.card`):
id, preset the type and the host's preset for it
class "car" | "van" | "bus" | "bike" | "rail" | "boat"
seats people it carries, driver included
tins paint it can carry (0: none; the satchel is all she has)
roof metres above the road a person on its roof stands (nil: no roof to stand on)
speeds = { street, avenue } what it can do, metres a second (a Warden car does 14 / 22)
fits = { lane, alley, stairs } where it can go that a saloon cannot
take the state taking it counts as when it is not parked (pursuitKit theft `takes`):
"occupied" for anything with a driver; "service" for the Wardens' own
concealment a concealment tag that applies while she drives it lawfully (content.pursuit)
witnesses people aboard who watch what she does (a bus's passengers)
blocks = true wide enough to shut a street when left across it
siren = true traffic clears for it
rails = true it runs on rails to a timetable; it is ridden, not driven
storable whether a garage takes it
fence sous a fence gives for it (nil: nobody will touch it)
mount the paint arm mount it gives (content.paint arms[..].mount)
The interface is documented in the header of init.luau; this file repeats it for the asset browser.