mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-14 19:39:29 +02:00
Resolved kev's commnet
This commit is contained in:
parent
0d6d00a8ef
commit
b3f3aa56bd
@ -126,9 +126,7 @@ export function randItem<T>(items: T[]): T {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function randSeedItem<T>(items: T[] | readonly T[]): T {
|
export function randSeedItem<T>(items: T[] | readonly T[]): T {
|
||||||
// TODO: Resolve this later
|
return items.length === 1 ? items[0] : Phaser.Math.RND.pick(items as T[]);
|
||||||
// @ts-expect-error - phaser is dumb af
|
|
||||||
return items.length === 1 ? items[0] : Phaser.Math.RND.pick(items);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function randSeedWeightedItem<T>(items: T[]): T {
|
export function randSeedWeightedItem<T>(items: T[]): T {
|
||||||
|
Loading…
Reference in New Issue
Block a user