Reference · Rockets, variants, parts and the fit check
specBlockfunction
The spec block of a ship, for its sheet and its inspector: length, beam, height, dry and full mass, the engines by role, thrust, acceleration, top and cruise speed and the trip to Proxima Centauri in ship time and in Earth's. Crew, passengers and cargo belong to the ship's own bible and are not here.
Import it
import { specBlock } from "@johnmorrisdotca/uchusen-rockets";
Definition
function specBlock(ship: ShipList, extras?: { computer?: string; atc?: number; }): SpecLine[]
Parameters
| Name | Type | Description |
|---|---|---|
ship | ShipList | The ship's list. |
extras (optional) | { computer?: string; atc?: number; } | The ship's computer ("KAZE core v4") and its number of small craft (ATC), which belong to the ship and not to the kit. |
Returns
SpecLine[]
The lines, in the order a sheet prints them.
Examples
import { specBlock, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
for (const line of specBlock(SAMPLE_SHIPS.scout)) console.log(`${line.name}: ${line.value}`);Length: 151.9 m
Beam: 38.8 m
Dry mass: 2,330 t
Full mass: 4,590 t
Engines, main (FTD ×3): 3 x 30 MN = 90 MN
Acceleration: 1.999 g full, 3.939 g dry
Cruise speed: 1.3% of c
Top speed: 2.7% of c
Proxima Centauri: 319.1 years aboard, 319.1 years on EarthWhat it prints (run when this page was built)