From aadc0a857632e9cedd521f991233c005c15aff1c Mon Sep 17 00:00:00 2001 From: flx-sta <50131232+flx-sta@users.noreply.github.com> Date: Wed, 4 Sep 2024 20:30:46 -0700 Subject: [PATCH] update `isBetween` docs. Remove `.js` imports --- src/test/field/pokemon.test.ts | 4 ++-- src/utils.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/field/pokemon.test.ts b/src/test/field/pokemon.test.ts index ae8d7984828..f7c1cf8bc3d 100644 --- a/src/test/field/pokemon.test.ts +++ b/src/test/field/pokemon.test.ts @@ -1,8 +1,8 @@ import { Species } from "#app/enums/species"; import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; import GameManager from "../utils/gameManager"; -import { PokeballType } from "#app/enums/pokeball.js"; -import BattleScene from "#app/battle-scene.js"; +import { PokeballType } from "#app/enums/pokeball"; +import BattleScene from "#app/battle-scene"; describe("Spec - Pokemon", () => { let phaserGame: Phaser.Game; diff --git a/src/utils.ts b/src/utils.ts index 15cd2786627..c63e84f9fd1 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -585,11 +585,11 @@ export function getLocalizedSpriteKey(baseKey: string) { } /** - * Check if a number is between two other numbers + * Check if a number is **inclusive** between two numbers * @param num the number to check - * @param min the minimum value - * @param max the maximum value - * @returns true if number is between min and max + * @param min the minimum value (included) + * @param max the maximum value (included) + * @returns true if number is **inclusive** between min and max */ export function isBetween(num: number, min: number, max: number): boolean { return num >= min && num <= max;