Skip to the content

Uchusen Rockets宇宙船

Rockets drawn from sourced sizes: line drawings and painted 3D views you drop into a page, take apart and turn round, and a typed model that checks whether a rocket really goes together.

Uchusen is the Japanese word 宇宙船 for spaceship. About the name

Contents

Reference · Rockets, variants, parts and the fit check

swarmCountfunction

How many drones work this ship. A small craft is 6, Miyamoto and Ariake are 24, Hanabusa is 48, and the long ships are 96. Never more than SWARM_CAP.

Import it

import { swarmCount } from "@johnmorrisdotca/uchusen-rockets";

Definition

function swarmCount(variant: string): number | undefined

Parameters

NameTypeDescription
variantstring

The variant id.

Returns

number | undefined

The count, or undefined when that ship has no build.

Examples

import { swarmCount } from "@johnmorrisdotca/uchusen-rockets";

console.log(swarmCount("miyamoto"));
console.log(swarmCount("starship") === undefined);
24
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/uchusen-rockets 0.14.0.