军团活动:无法获取道具
This commit is contained in:
@@ -226,8 +226,8 @@ export function getRandEelmWithWeight<T extends { weight: number }>(randomList:
|
|||||||
* @param source
|
* @param source
|
||||||
*/
|
*/
|
||||||
export function sortArrRandom<T>(source: T[] = []): T[] {
|
export function sortArrRandom<T>(source: T[] = []): T[] {
|
||||||
let arr: T[] = deepCopy(source);
|
let newArr: T[] = [...source];
|
||||||
return arr.sort(() => { return Math.random() - 0.5; });
|
return newArr.sort(() => { return Math.random() - 0.5; });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user