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
| Name | Type | Description |
|---|---|---|
variant | string | 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
trueWhat it prints (run when this page was built)