✨ feat(任务): 添加任务类型
This commit is contained in:
@@ -104,7 +104,7 @@ export class NormalBattleHandler {
|
||||
if (checkResult.status == -1) {
|
||||
return checkResult.resResult
|
||||
}
|
||||
} else if (warInfo.warType == WAR_TYPE.MYSTERY || warInfo.warType == WAR_TYPE.MYSTERY_ELITE) {
|
||||
} else if (warInfo.warType == WAR_TYPE.MYSTERY) {
|
||||
let checkResult = await checkDungeonNum(roleId, 1, battleId);
|
||||
if (checkResult.status == -1) {
|
||||
return checkResult.resResult
|
||||
@@ -222,7 +222,7 @@ export class NormalBattleHandler {
|
||||
if (towerEndResult.data.towerReward)
|
||||
warReward.setFixReward(towerEndResult.data.towerReward)
|
||||
}
|
||||
} else if (warInfo.warType == WAR_TYPE.MYSTERY || warInfo.warType == WAR_TYPE.MYSTERY_ELITE) {
|
||||
} else if (warInfo.warType == WAR_TYPE.MYSTERY) {
|
||||
let checkResult = await checkDungeonAndIncrease(roleId, isSuccess?1:0, false, battleId);
|
||||
let role = await RoleModel.saveDungeonHero(roleId, battleId, heroes, isSuccess);
|
||||
if (role) {
|
||||
@@ -344,7 +344,7 @@ export class NormalBattleHandler {
|
||||
return checkResult.resResult
|
||||
}
|
||||
dailyNum = Object.assign(dailyNum, checkResult.data)
|
||||
} else if (warInfo.warType == WAR_TYPE.MYSTERY || warInfo.warType == WAR_TYPE.MYSTERY_ELITE) {
|
||||
} else if (warInfo.warType == WAR_TYPE.MYSTERY) {
|
||||
let checkResult = await checkDungeonAndIncrease(roleId, count, true, battleId);
|
||||
if (checkResult.status == -1) {
|
||||
return checkResult.resResult
|
||||
|
||||
Reference in New Issue
Block a user