军团表逻辑
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user