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