Reference · Rockets, variants, parts and the fit check
pickBellsfunction
Which count engines burn: from the middle out, and a ring that is only partly used has them evenly round it, so three of a Falcon 9's nine are the middle one and two opposite. A source says how many; where they stand is this rule.
Import it
import { pickBells } from "@johnmorrisdotca/uchusen-rockets";
Definition
function pickBells(bells: readonly Bell[], count: number): Bell[]
Parameters
| Name | Type | Description |
|---|---|---|
bells | readonly Bell[] | All the bells of a part. |
count | number | How many burn. |
Returns
Bell[]
The bells that burn.
Examples
import { build } from "@johnmorrisdotca/uchusen-rockets/build";
import { bellsOf, pickBells } from "@johnmorrisdotca/uchusen-rockets";
const booster = build({ rocket: "falcon-9", variant: "block-5" }).parts[0];
console.log(booster ? pickBells(bellsOf(booster.pieces), 3).length : 0);3What it prints (run when this page was built)