军团活动:无法获取道具

This commit is contained in:
luying
2022-04-25 10:00:57 +08:00
parent e7c91b05b0
commit fe95c7169f

View File

@@ -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; });
}
/**