mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-10 17:39:31 +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 {
|
||||
// TODO: Resolve this later
|
||||
// @ts-expect-error - phaser is dumb af
|
||||
return items.length === 1 ? items[0] : Phaser.Math.RND.pick(items);
|
||||
return items.length === 1 ? items[0] : Phaser.Math.RND.pick(items as T[]);
|
||||
}
|
||||
|
||||
export function randSeedWeightedItem<T>(items: T[]): T {
|
||||
|
Loading…
Reference in New Issue
Block a user