军团活动:修复debug接口

This commit is contained in:
luying
2021-03-24 17:51:13 +08:00
parent 5290b257b8
commit ca12af8091
4 changed files with 36 additions and 3 deletions

View File

@@ -130,9 +130,11 @@ export function getRecordScore(aid: number, record: { round: number, dataId: num
let score = gameData.gateActivityPoint.get(enemyType);
newRecords.push({ round, dataId, score, enemyType});
sum += score;
console.log('*******', sum, score, enemyType);
if(round > curRound) { // 每回合开始得10分
sum += gameData.gateActivityPoint.get(GET_POINT_WAYS.ROUND_START);
curRound = round;
console.log('********', sum);
}
historyEnemies.push(dataId);
@@ -256,6 +258,8 @@ export async function sendGuildActEndMsg(aid: number) {
}
// 发完之后再做下周自动宣战
for(let serverId of serverlists) {
let chatSid = await getWorldChannelSid(serverId);
pinus.app.rpc.chat.chatRemote.sendGuildActivityEnd.toServer(chatSid, serverId);
await autoDeclare(serverId);
}
cityActivityObj = new CityActivityObject();