军团活动:诸侯混战城门血量
This commit is contained in:
@@ -22,7 +22,7 @@ import { getGoldObject } from '../../../pubUtils/itemUtils';
|
||||
import { RoleModel } from '../../../db/Role';
|
||||
import { sendMailToGuildByContent } from '../../../services/mailService';
|
||||
import { genAuction } from '../../../services/auctionService';
|
||||
import { getMedianCe } from '../../../services/guildActivity/guildActivityService';
|
||||
import { getPreDayActiveData } from '../../../services/guildActivity/guildActivityService';
|
||||
|
||||
export default function (app: Application) {
|
||||
new HandlerService(app, {});
|
||||
@@ -63,8 +63,9 @@ export class GuildHandler {
|
||||
}
|
||||
let bossBase = getBossByLv(curStructure.lv);
|
||||
let { bossHp: minBossHp, warId } = getRandSingleEelm(bossBase.wars);
|
||||
let medianCe = await getMedianCe(serverId);
|
||||
let bossHp = Math.ceil(medianCe * bossBase.ratio);
|
||||
let medianCe = await getPreDayActiveData(serverId);
|
||||
// let bossHp = Math.ceil(medianCe * bossBase.ratio);
|
||||
let bossHp = 10000;
|
||||
|
||||
console.log('******* openBossInstance', medianCe, bossHp, minBossHp)
|
||||
if(bossHp < minBossHp) bossHp = minBossHp;
|
||||
|
||||
Reference in New Issue
Block a user