swarmCount関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { swarmCount } from "@johnmorrisdotca/uchusen-rockets";
定義
function swarmCount(variant: string): number | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
variant | string | The variant id. |
戻り値
number | undefined
The count, or undefined when that ship has no build.
例
import { swarmCount } from "@johnmorrisdotca/uchusen-rockets";
console.log(swarmCount("miyamoto"));
console.log(swarmCount("starship") === undefined);24
true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。