🐞 fix(学宫): 修改选择题奖励
This commit is contained in:
@@ -779,7 +779,7 @@ export class RougeHandler {
|
||||
await RougelikeLayerModel.updateByGameCode(gameCode, layer, { $set: { hasPass: true } })
|
||||
|
||||
let result = await handleAddFun.save();
|
||||
result = await handleAddFun.getHolyEffect();
|
||||
await handleAddFun.getHolyEffect();
|
||||
|
||||
await addSameTypeCollect(roleId, sid, gameCode, COLLECTION_TYPE.EVENT, optionGroupIds);
|
||||
//任务
|
||||
|
||||
@@ -290,7 +290,8 @@ export class RougeEffect {
|
||||
const { cardCode, cardId, useCount = 0, type } = cur;
|
||||
const holyCardData = gameData.rougeHolyCard.get(cardId);
|
||||
let tempUseCount = holyCardData?.useCount || 0;
|
||||
if (tempUseCount > 0 && useCount > 0 && type == ROUGE_LIKE_CARD_TYPE.HOLY) canRandomCards.push(cur);
|
||||
if (tempUseCount - useCount <= 0 && type == ROUGE_LIKE_CARD_TYPE.HOLY) canRandomCards.push(cur);
|
||||
|
||||
})
|
||||
|
||||
let randomCards = getRandEelm(canRandomCards, num);
|
||||
|
||||
Reference in New Issue
Block a user