🐞 fix(学宫): 新增圣物效果2008,对使用次数计数
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user