🐞 fix(学宫): 新增圣物效果2008,对使用次数计数

This commit is contained in:
zhangxk
2023-10-19 19:54:11 +08:00
parent e5c62a8f78
commit 2171f798de
2 changed files with 17 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ import { DicRougeHolyCard } from '../../../pubUtils/dictionary/DicRougeHolyCard'
import { DicRougeSkillCard } from '../../../pubUtils/dictionary/DicRougeSkillCard';
import { DicRougeOptionGroup } from '../../../pubUtils/dictionary/DicRougeOptionGroup';
import { addItems, getRougeTechScoreObject, handleCost } from '../../../services/role/rewardService';
import { getEffectWhenGameStart, getCharaHp, getAddCoin, getNoBossRecoveryHp, getBattleRecoveryNum, getRecoveryExtendHp, getTrainCardDiscount, checkCanChooseSkillCard, checkCanReRandomReward } from '../../../services/battle/rougeEffectService';
import { getEffectWhenGameStart, getCharaHp, getAddCoin, getNoBossRecoveryHp, getBattleRecoveryNum, getRecoveryExtendHp, getTrainCardDiscount, checkCanChooseSkillCard, checkCanReRandomReward, getEnterGame } from '../../../services/battle/rougeEffectService';
import { RougelikeExtendModel } from '../../../db/RougelikeExtend';
import * as util from 'util';
import { DicRougePassiveCard } from '../../../pubUtils/dictionary/DicRougePassiveCard';
@@ -511,6 +511,8 @@ export class RougeHandler {
if (status == 1 && arrAuthorType.length > 0 && arrAuthorType.every(cur => cur == arrAuthorType[0])) {
await checkTask(serverId, roleId, sid, TASK_TYPE.ROUGE_BOSS_PASS, { authorType: arrAuthorType[0], count: 1 });
}
await getEnterGame(roleId, gameCode);
return resResult(STATUS.SUCCESS, { status, gameCode, detailCode, charas, incCoin });
}
@@ -770,7 +772,7 @@ export class RougeHandler {
cardId = getRandEelmWithWeight(newCards).dic.cardId;
}
if(cardId > 0) handleAddFun.pushHolyCard(cardId);
if (cardId > 0) handleAddFun.pushHolyCard(cardId);
}
status = 1;