mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 10:52:17 +02:00
update isBetween
docs. Remove .js
imports
This commit is contained in:
parent
be2d9d90b8
commit
aadc0a8576
@ -1,8 +1,8 @@
|
|||||||
import { Species } from "#app/enums/species";
|
import { Species } from "#app/enums/species";
|
||||||
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
|
||||||
import GameManager from "../utils/gameManager";
|
import GameManager from "../utils/gameManager";
|
||||||
import { PokeballType } from "#app/enums/pokeball.js";
|
import { PokeballType } from "#app/enums/pokeball";
|
||||||
import BattleScene from "#app/battle-scene.js";
|
import BattleScene from "#app/battle-scene";
|
||||||
|
|
||||||
describe("Spec - Pokemon", () => {
|
describe("Spec - Pokemon", () => {
|
||||||
let phaserGame: Phaser.Game;
|
let phaserGame: Phaser.Game;
|
||||||
|
@ -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 num the number to check
|
||||||
* @param min the minimum value
|
* @param min the minimum value (included)
|
||||||
* @param max the maximum value
|
* @param max the maximum value (included)
|
||||||
* @returns true if number is between min and max
|
* @returns true if number is **inclusive** between min and max
|
||||||
*/
|
*/
|
||||||
export function isBetween(num: number, min: number, max: number): boolean {
|
export function isBetween(num: number, min: number, max: number): boolean {
|
||||||
return num >= min && num <= max;
|
return num >= min && num <= max;
|
||||||
|
Loading…
Reference in New Issue
Block a user