新建武将时计算初始战力
This commit is contained in:
@@ -269,7 +269,7 @@ export function getRefTime(now = new Date(), hour: number, day = 0) {
|
||||
* @param cnt 返回随机元素个数
|
||||
*/
|
||||
export function getRandEelm(source: Array<any> = [], cnt = 1): Array<any> {
|
||||
if (cnt > source.length) return [];
|
||||
if (cnt > source.length || cnt == 0 ) return [];
|
||||
if (cnt === source.length) return source;
|
||||
let idxs = new Set();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user