新建武将时计算初始战力

This commit is contained in:
luying
2020-12-23 18:37:59 +08:00
parent 5cbeaa83e9
commit 3732c536d2
5 changed files with 67 additions and 10 deletions
+1 -1
View File
@@ -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();