Reference · Rockets, variants, parts and the fit check
assemblyOffunction
The part at day. spanMetres is how wide it is. Over SHOP_LIMIT_M it is never carried.
Import it
import { assemblyOf } from "@johnmorrisdotca/uchusen-rockets";
Definition
function assemblyOf(step: PlayStep, day: number, spanMetres: number): PartBuild
Parameters
| Name | Type | Description |
|---|---|---|
step | PlayStep | The build step. |
day | number | Days after the keel was laid. |
spanMetres | number | How wide the part is, in metres. |
Returns
PartBuild
Whether it is visible as a finished piece, how far it has grown, and whether a beam is carrying it.
Examples
import { assemblyOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(assemblyOf({ slot: "drive", start: 0, days: 100 }, 4, 80).carried);falseWhat it prints (run when this page was built)