修复:诸侯混战宣战,邮件领取,名将谱去除好感,镇念塔层级下降,求贤若渴碎片,pvp,秘境首通

This commit is contained in:
luying
2022-01-06 20:55:01 +08:00
parent b744b7b560
commit a16ffd39ab
11 changed files with 151 additions and 153 deletions
@@ -127,8 +127,11 @@ export class GachaPull {
// 设置pickup的武将
let newPercent = [];
for (let { id, weight } of percent) {
if (id == gameData.gachaContentHero.get(0)) {
if (id == 4) {
newPercent.push({ id, weight, goodId: userGacha.pickHero })
} else if ( id == 14 || id == 15) {
let dicHero = gameData.hero.get(userGacha.pickHero);
newPercent.push({ id, weight, goodId: dicHero.pieceId });
} else {
newPercent.push({ id, weight });
}
+2 -2
View File
@@ -248,8 +248,8 @@ export async function towerBattleEnd(sid: string, roleId: string, serverId: numb
await startHangUp(roleId, roleName);
}
// 任务
await checkTask(roleId, sid, TASK_TYPE.BATTLE_TOWER_LV, role.towerLv, false, {});
await checkActivityTask(serverId, sid, roleId, TASK_TYPE.BATTLE_TOWER_LV, 1, { towerLv: role.towerLv });
await checkTask(roleId, sid, TASK_TYPE.BATTLE_TOWER_LV, role.towerLv - 1, false, {});
await checkActivityTask(serverId, sid, roleId, TASK_TYPE.BATTLE_TOWER_LV, 1, { towerLv: role.towerLv - 1 });
}
return {
status: 0,