🐞 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

@@ -460,6 +460,19 @@ export async function getAddPassiveWeight(roleId: string, gameCode: string, auth
return addPassiveWeight;
}
// 2008
export async function getEnterGame(roleId: string, gameCode: string) {
let rougeEffect = new RougeEffect(roleId, gameCode);
let { newEffect, holyMap } = await rougeEffect.getEffectData([
ROUGE_EFFECT_TYPE.HOLY_ENEMY_MAIN_ATTR_DOWN,//2008
]);
if (newEffect.length == 0) return;
for (const { effectParam, cardCode } of newEffect) {
if (!getHolyCardIsUse(holyMap.get(cardCode))) continue;
await updateHolyUseCount(holyMap.get(cardCode), gameCode)
}
}
// 非boss战斗失败视为胜利并且满血复活 2009
export async function getNoBossRecoveryHp(roleId: string, gameCode: string) {
let rougeEffect = new RougeEffect(roleId, gameCode);