军团表逻辑

This commit is contained in:
mamengke01
2021-01-22 21:28:35 +08:00
parent b5d84c03e4
commit 3e6ec77d56
30 changed files with 4838 additions and 1387 deletions

View File

@@ -4,7 +4,6 @@ import { HeroModel, HeroType } from '../db/Hero';
import fs = require('fs');
import path = require('path');
import { DicRandomEffectPool } from './dictionary/DicRandomEffectPool';
import { HERO_CE_RATIO, ABI_STAGE } from '../consts';
import { findIndex } from 'underscore';
@@ -167,9 +166,6 @@ export async function calculateSumCE(roleId: string, type: number, param: { num?
return sum;
}
export function getRandomByLen(arr: Array<number>): number
export function getRandomByLen(arr: Array<string>): string
export function getRandomByLen(arr: Array<DicRandomEffectPool>): DicRandomEffectPool
export function getRandomByLen(arr: Array<any>): any {
let len = arr.length;
return arr[Math.floor(Math.random() * len)]