mayRerollUntil関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Whether a die may be rerolled until it clears this face: the reroll must match the lowest face and no more than half of them.
インポート
import { mayRerollUntil } from "@johnmorrisdotca/korokoro";
定義
function mayRerollUntil(sides: Sides, reroll: unknown): reroll is number
引数
| 名前 | 型 | 説明 |
|---|---|---|
sides | Sides | A numbered die size or F for Fate dice. |
reroll | unknown | The highest face eligible for a reroll. |
戻り値
boolean
Whether a die may be rerolled until it clears this face: the reroll must match the lowest face and no more than half of them.
例
import { mayRerollUntil } from "@johnmorrisdotca/korokoro";
console.log(mayRerollUntil(6, 2), mayRerollUntil(6, 4));true false出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。