寻宝:战力限制

This commit is contained in:
luying
2021-08-23 15:25:39 +08:00
parent bd14b34d2d
commit 7bc1e3b4e7
4 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -54,8 +54,8 @@ export function getRandComBtlRobots(topLineupCe: number, ceLimit: number, lv: nu
if (robotHeroes && robotInfos && robotHeroes.length && robotInfos.length && robotInfos.length === robotHeroes.length) {
robotHeroes.forEach((robot, idx) => {
let robotCe = 0;
if (ceLimit) {
robotCe = getRandValueByMinMax(ceLimit * COM_BTL_CONST.ROBOT_CE_LIMIT_MIN, ceLimit * COM_BTL_CONST.ROBOT_CE_LIMIT_MAX, 0);
if (ceLimit && ceLimit > 0) {
robotCe = getRandValueByMinMax(ceLimit, (topLineupCe || 0) * (1 + COM_BTL_CONST.ROBOT_CE_RATIO), 0);
} else {
robotCe = getRandValue(topLineupCe || 0, COM_BTL_CONST.ROBOT_CE_RATIO, 0);
}